| Constructor and Description |
|---|
Mapped(Function<From,To> conversion,
Optional<From> fromValue)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent()
Deprecated.
Returns whether the optional value is present.
|
To |
value()
Deprecated.
Returns the optional value.
|
To |
value(To defaultValue)
Deprecated.
Returns the optional value or the given default value if the optional value is not present.
|
public boolean isPresent()
Optionalpublic To value(To defaultValue)
OptionaldefaultValue - The value to return if the optional value is not present.