public abstract class Optional<T> extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Optional.Some<T> |
Modifier and Type | Method and Description |
---|---|
static <T> Optional<T> |
empty() |
abstract T |
get() |
boolean |
isDefined() |
abstract boolean |
isEmpty() |
static <T> Optional<T> |
of(T it) |
java.lang.String |
toString() |