| Modifier and Type | Method and Description |
|---|---|
IOptional<T,E> |
accept(IAcceptor<T> acceptor) |
<O> IOptional<O,E> |
cast(Class<O> clazz) |
IOptional<T,E> |
consume(IConsumer<T,E> consumer) |
<O> IOptional<O,E> |
convert(IConverter<T,O,E> converter) |
static <T,E extends Exception> |
create(IAcceptor<T> acceptor,
T value) |
static <T,E extends Exception> |
create(T value) |
<O> IOptional<T,E> |
equals(IConverter<T,O,E> converter,
O other) |
T |
get() |
T |
getOr(ISupplier<T,E> supplier) |
<X extends Exception> |
getOrThrow(ISupplier<X,E> supplier) |
boolean |
isAccepted() |
static <T> IOptional<T,RuntimeException> |
of(IAcceptor<T> acceptor,
T value) |
static <T> IOptional<T,RuntimeException> |
of(T value) |
IOptional<T,E> |
or(IBlock<E> block) |
IOptional<T,E> |
or(ISupplier<T,E> supplier) |
IOptional<T,E> |
or(T value) |
public static <T> IOptional<T,RuntimeException> of(T value)
public static <T> IOptional<T,RuntimeException> of(IAcceptor<T> acceptor, T value)
public boolean isAccepted()
isAccepted in interface IOptional<T,E extends Exception>public <O> IOptional<T,E> equals(IConverter<T,O,E> converter, O other) throws E extends Exception
public <X extends Exception> T getOrThrow(ISupplier<X,E> supplier) throws E extends Exception, X extends Exception
Copyright © 2007–2018 Andreas W. Bartels. All rights reserved.