Class NullableContainer<T>
java.lang.Object
com.itextpdf.commons.datastructures.NullableContainer<T>
A simple container that can hold a value.
This is class is used to make the autoporting of primitive types easier.
For example autoporting enums will convert them to non nullable types.
But if you embed them in a NullableContainer, the autoporting will convert them to nullable types.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
NullableContainer
Creates a newNullableContainer
instance.- Parameters:
value
- the value
-
-
Method Details
-
getValue
Gets the value.- Returns:
- the value
-