Package org.apache.ignite.lang
Class NullableValue<T>
java.lang.Object
org.apache.ignite.lang.NullableValue<T>
- Type Parameters:
T- Value type.
Container object that contains a nullable value.
NullableValue is primarily used as a return type for methods where
it's not clear whether the value is absent or is null.
Unlike Optional, this class supports null values and allows a method with NullableValue
returning type to return a null, as well as the NullableValue object. If the method returns null,
this means that no value is present. If the method returns the NullableValue object,
this means that a value is present but this value can be null.
-
Method Summary
-
Method Details