public class NullableObject<T> extends Object implements Serializable
The presence of a reference indicates that a value exists, the absence of a reference to this object indicates that there is no value (similar to a Pair<Object, Boolean>).
Constructor and Description |
---|
NullableObject(T object)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
T |
getObject()
Returns the contained value.
|
void |
setObject(T object)
Sets a new contained value.
|
public NullableObject(T object)
object
- the object to contain