| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optionals.Wrapper<T> |
filter(Predicate<? super T> predicate) |
<U,E extends Exception> |
flatMap(ThrowingFunction<? super T,Optional<U>,E> mapper) |
T |
get() |
int |
hashCode() |
<E extends Exception> |
ifAbsent(ThrowingRunnable<E> runable) |
<E extends Exception> |
ifPresent(ThrowingConsumer<? super T,E> consumer) |
boolean |
isPresent() |
<U,E extends Exception> |
map(ThrowingFunction<? super T,? extends U,E> mapper) |
T |
orElse(T other) |
<E extends Exception> |
orElseGet(ThrowingSupplier<? extends T,E> supplier) |
<X extends Throwable> |
orElseThrow(Supplier<? extends X> exceptionSupplier) |
Stream<T> |
stream() |
String |
toString() |
public T get()
public boolean isPresent()
public <E extends Exception> Optionals.Wrapper<T> ifPresent(ThrowingConsumer<? super T,E> consumer) throws E extends Exception
E extends Exceptionpublic <E extends Exception> Optionals.Wrapper<T> ifAbsent(ThrowingRunnable<E> runable) throws E extends Exception
E extends Exceptionpublic Optionals.Wrapper<T> filter(Predicate<? super T> predicate)
public <U,E extends Exception> Optionals.Wrapper<U> map(ThrowingFunction<? super T,? extends U,E> mapper) throws E extends Exception
E extends Exceptionpublic <U,E extends Exception> Optionals.Wrapper<U> flatMap(ThrowingFunction<? super T,Optional<U>,E> mapper) throws E extends Exception
E extends Exceptionpublic <E extends Exception> T orElseGet(ThrowingSupplier<? extends T,E> supplier) throws E extends Exception
E extends Exceptionpublic <X extends Throwable> T orElseThrow(Supplier<? extends X> exceptionSupplier) throws X extends Throwable
X extends ThrowableCopyright © 2024. All rights reserved.