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