iText 8.0.5 API
iText.Commons.Datastructures.NullableContainer< T > Class Template Reference

A simple container that can hold a value. More...

Public Member Functions

  NullableContainer (T value)
  Creates a new NullableContainer instance. More...
 
virtual T  GetValue ()
  Gets the value. More...
 

Detailed Description

A simple container that can hold a value.

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 & Destructor Documentation

◆ NullableContainer()

Creates a new NullableContainer instance.

Parameters
value the value

Member Function Documentation

◆ GetValue()

virtual T iText.Commons.Datastructures.NullableContainer< T >.GetValue ( )
inlinevirtual

Gets the value.

Returns
the value