public abstract class Option extends Data
Constructor and Description |
---|
Option() |
Modifier and Type | Method and Description |
---|---|
Data |
get() |
Data |
getOrElse(Data defaultValue) |
abstract Data |
getOrElse(Supplier<? extends Data> defaultValue) |
abstract boolean |
isPresent() |
static Option |
just(Data value) |
static <A> Data.View<Optional<A>> |
viewOptional(Data.View<A> body) |
static <A> Data.View<A> |
viewOrElse(Data.View<A> body,
A defaultValue) |
static <A> Data.View<A> |
viewOrElse(Data.View<A> body,
Supplier<? extends A> defaultValue) |
see also the complete user documentation .