| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent()
Returns whether the optional value is present.
|
E |
value()
Returns the optional value.
|
E |
value(E defaultValue)
Returns the optional value or the given default value if the optional value is not present.
|
public Next(java.util.Iterator<E> iterator)
public boolean isPresent()
Optionalpublic E value(E defaultValue)
Optional