public class Optional<T> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Optional.NotPresentException |
Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
absent() |
static <T> Optional<T> |
fromNullable(T t) |
T |
get() |
boolean |
isPresent() |
static <T> Optional<T> |
of(T t) |
T |
or(T alternative) |
rx.Observable<T> |
toObservable() |
Copyright © 2013–2016. All rights reserved.