public final class Nullable<E> extends Object
Constructor and Description |
---|
Nullable()
Constructor.
|
Nullable(E value)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
E |
getValue()
Get the store value if any.
|
boolean |
hasValue()
Get the status of this nullable.
|
void |
nullify()
Set the stored value to null.
|
public Nullable()
public Nullable(E value)
value
- The value to set to this nullable.public E getValue()
public boolean hasValue()
public void nullify()
Copyright © 2020. All rights reserved.