|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Optional | |
---|---|
com.google.common.base | Basic utility libraries and interfaces. |
Uses of Optional in com.google.common.base |
---|
Methods in com.google.common.base that return Optional | ||
---|---|---|
static
|
Optional.absent()
Returns an Optional instance with no contained reference. |
|
static
|
Optional.fromNullable(T nullableReference)
If nullableReference is non-null, returns an Optional instance containing that
reference; otherwise returns absent() . |
|
static
|
Optional.of(T reference)
Returns an Optional instance containing the given non-null reference. |
|
abstract Optional<T> |
Optional.or(Optional<? extends T> secondChoice)
Returns this Optional if it has a value present; secondChoice
otherwise. |
Methods in com.google.common.base with parameters of type Optional | |
---|---|
abstract Optional<T> |
Optional.or(Optional<? extends T> secondChoice)
Returns this Optional if it has a value present; secondChoice
otherwise. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |