com.espertech.esper.util
Class NullableObject<T>

java.lang.Object
  extended by com.espertech.esper.util.NullableObject<T>
All Implemented Interfaces:
java.io.Serializable

public class NullableObject<T>
extends java.lang.Object
implements 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

Constructor Summary
NullableObject(T object)
          Ctor.
 
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
 

Constructor Detail

NullableObject

public NullableObject(T object)
Ctor.

Parameters:
object - the object to contain
Method Detail

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

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com