org.apache.poi.openxml4j.util
Class Nullable<E>
- java.lang.Object
-
- org.apache.poi.openxml4j.util.Nullable<E>
-
public final class Nullable<E> extends java.lang.ObjectAn immutable object that could be defined as null.
-
-
Constructor Summary
Constructors Constructor and Description Nullable()Constructor.Nullable(E value)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description EgetValue()Get the store value if any.booleanhasValue()Get the status of this nullable.voidnullify()Set the stored value to null.
-
-
-
Constructor Detail
-
Nullable
public Nullable()
Constructor.
-
Nullable
public Nullable(E value)
Constructor.- Parameters:
value- The value to set to this nullable.
-
-
Method Detail
-
getValue
public E getValue()
Get the store value if any.- Returns:
- the store value
-
hasValue
public boolean hasValue()
Get the status of this nullable.- Returns:
- true if the nullable store a value (empty string is considered to be a value) else false>.
-
nullify
public void nullify()
Set the stored value to null.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG