Top Description Fields Constructors Methods
org.newsclub.net.unix.pool

public final Class MutableHolder<O>

extends Object
Class Inheritance
Type Parameters
<O>
The object type.
Imports
org.eclipse.jdt.annotation.Nullable

Holds an object.
Author
Christian Kohlschütter

Field Summary

Modifier and TypeField and Description
private @Nullable O

Constructor Summary

AccessConstructor and Description
public
MutableHolder(@Nullable O
The object to hold, or null.
obj
)

Creates a new MutableHolder object, holding the given object.

Method Summary

Modifier and TypeMethod and Description
public @Nullable O

Returns:

The object.
get
()

Returns the current object.

public void
set(@Nullable O
The object.
obj
)

Sets the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

objback to summary
private @Nullable O obj

Constructor Detail

MutableHolderback to summary
public MutableHolder(@Nullable O obj)

Creates a new MutableHolder object, holding the given object.

Parameters
obj:@Nullable O

The object to hold, or null.

Method Detail

getback to summary
public @Nullable O get()

Returns the current object.

Returns:@Nullable O

The object.

setback to summary
public void set(@Nullable O obj)

Sets the object.

Parameters
obj:@Nullable O

The object.