| Constructor and Description |
|---|
Absent() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Absent<T> |
absent()
Returns an
Absent value. |
boolean |
isPresent()
Returns whether the optional value is present.
|
T |
value()
Returns the optional value.
|
T |
value(T defaultValue)
Returns the optional value or the given default value if the optional value is not present.
|
public static <T> Absent<T> absent()
Absent value.T - The type of the absent value.Absent of the given type.public boolean isPresent()
Optionalpublic T value(T defaultValue)
Optional