| Constructor and Description |
|---|
First(java.lang.Iterable<T> iterable)
Deprecated.
Creates the
Optional first value of the given Iterable. |
First(java.lang.Iterable<T> iterable,
Filter<T> filter)
Deprecated.
|
First(java.lang.Iterable<T> iterable,
Predicate<T> predicate)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPresent()
Deprecated.
Returns whether the optional value is present.
|
T |
value()
Deprecated.
Returns the optional value.
|
T |
value(T defaultValue)
Deprecated.
Returns the optional value or the given default value if the optional value is not present.
|
public First(java.lang.Iterable<T> iterable, Predicate<T> predicate)
iterable - The Iterablepredicate - The Predicatepublic First(java.lang.Iterable<T> iterable, Filter<T> filter)
iterable - The Iterablefilter - The Filterpublic boolean isPresent()
Optionalpublic T value(T defaultValue)
OptionaldefaultValue - The value to return if the optional value is not present.