| Constructor and Description |
|---|
MapEntry(java.util.Map<K,V> map,
K key)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent()
Deprecated.
Returns whether the optional value is present.
|
V |
value()
Deprecated.
Returns the optional value.
|
V |
value(V defaultValue)
Deprecated.
Returns the optional value or the given default value if the optional value is not present.
|
public boolean isPresent()
Optionalpublic V value(V defaultValue)
OptionaldefaultValue - The value to return if the optional value is not present.