public abstract class Optionals extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Optionals.Wrapper<T> |
| Modifier and Type | Method and Description |
|---|---|
static <S,D,E extends Exception> |
map(Optional<S> source,
ThrowingFunction<? super S,? extends D,E> mapper) |
static <D,E extends Exception> |
orElseGet(Optional<D> current,
ThrowingSupplier<? extends D,E> supplier) |
static <T> Stream<T> |
streamOf(Optional<T> src) |
static <T> Optionals.Wrapper<T> |
with(Optional<T> wrapped) |
public static <S,D,E extends Exception> Optional<D> map(Optional<S> source, ThrowingFunction<? super S,? extends D,E> mapper) throws E extends Exception
E extends Exceptionpublic static <D,E extends Exception> D orElseGet(Optional<D> current, ThrowingSupplier<? extends D,E> supplier) throws E extends Exception
E extends Exceptionpublic static <T> Optionals.Wrapper<T> with(Optional<T> wrapped)
Copyright © 2025. All rights reserved.