| Modifier and Type | Method and Description |
|---|---|
<T> Either<T,E> |
either(Supplier<T> nothing) |
boolean |
equals(Object rhs) |
<T> T |
fold(Supplier<T> ifNothing,
Function<E,T> ifJust) |
E |
get() |
int |
hashCode() |
boolean |
isPresent() |
Iterator<E> |
iterator() |
static <E> Maybe<E> |
just(E element) |
<T> Maybe<T> |
map(Function<E,T> function) |
static <E> Maybe<E> |
nothing() |
Optional<E> |
optional() |
E |
orElse(E otherwise) |
Maybe<E> |
orElse(Maybe<E> otherwise) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorCopyright © 2017. All rights reserved.