| Constructor and Description |
|---|
Next(java.util.Iterator<E> iterator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent()
Deprecated.
Returns whether the optional value is present.
|
E |
value()
Deprecated.
Returns the optional value.
|
E |
value(E defaultValue)
Deprecated.
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)
OptionaldefaultValue - The value to return if the optional value is not present.