com.espertech.esper.util
Class NullableObject<T>
java.lang.Object
com.espertech.esper.util.NullableObject<T>
All Implemented Interfaces: java.io.Serializable
public class NullableObject<T> extends java.lang.Objectimplements java.io.Serializable
A generic class to hold an object that may itself be a null value versus an undefined (not existing) value.
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).
See Also: Serialized Form
Method Summary
T
getObject ()
Returns the contained value.
void
setObject (T object)
Sets a new contained value.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
NullableObject
public NullableObject (T object)
Ctor.
Parameters: object
- the object to contain
getObject
public T getObject ()
Returns the contained value.
Returns: contained value
setObject
public void setObject (T object)
Sets a new contained value.
Parameters: object
- value to set