public interface IValueHolder<T>
Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the current value (might be null).
|
boolean |
isNull()
Returns whether or not the underlying value is null.
|
boolean |
isPresent()
Returns whether or not the underlying value is not null.
|
void |
set(T value)
Sets the current value.
|
T get()
void set(T value)
value
- The new value (might be null).boolean isNull()
boolean isPresent()