DelegatingOptional.@Deprecated public abstract class DelegatingOptional<T> extends java.lang.Object implements Optional<T>
| Constructor and Description |
|---|
DelegatingOptional(Optional<T> delegate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent()
Deprecated.
Returns whether the optional value is present.
|
T |
value()
Deprecated.
Returns the optional value.
|
T |
value(T defaultValue)
Deprecated.
Returns the optional value or the given default value if the optional value is not present.
|
public final boolean isPresent()
Optionalpublic final T value(T defaultValue)
OptionaldefaultValue - The value to return if the optional value is not present.