Class NullableContainer

java.lang.Object
com.itextpdf.commons.datastructures.NullableContainer

public class NullableContainer extends 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 Details

    • NullableContainer

      public NullableContainer (T value)
      Creates a new NullableContainer instance.
      Parameters:
      value - the value
  • Method Details

    • getValue

      public T getValue()
      Gets the value.
      Returns:
      the value