Class Overview
This class is a wrapper around Optional in order to avoid having
public references to Guava API.
Summary
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
final
void
|
wait()
|
|
Public Methods
public
boolean
equals
(Object object)
public
static
EspressoOptional<T>
fromNullable
(T nullableReference)
| Parameters |
nullableReference |
T |
public
boolean
isPresent
()
public
T
or
(Supplier<? extends T> supplier)
| Parameters |
supplier |
Supplier |
public
T
or
(T defaultValue)
| Parameters |
defaultValue |
T |
public
Optional<T>
or
(Optional<? extends T> secondChoice)
| Parameters |
secondChoice |
Optional |
public
static
Iterable<T>
presentInstances
(Iterable<? extends Optional<? extends T>> optionals)
| Parameters |
optionals |
Iterable |
public
Optional<V>
transform
(Function<? super T, V> function)
| Parameters |
function |
Function |