Class NullableContainer<T>
- java.lang.Object
-
- com.itextpdf.commons.datastructures.NullableContainer<T>
-
public class NullableContainer<T> extends java.lang.Object
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.
-
-
Constructor Summary
Constructors Constructor Description NullableContainer(T value)
Creates a newNullableContainer
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getValue()
Gets the value.
-
-
-
Field Detail
-
value
private final T value
-
-
Constructor Detail
-
NullableContainer
public NullableContainer(T value)
Creates a newNullableContainer
instance.- Parameters:
value
- the value
-
-
Method Detail
-
getValue
public T getValue()
Gets the value.- Returns:
- the value
-
-