T - the type of the input to the functionR - the type of the result of the functionE - the type of the thrown checked exception@FunctionalInterface public interface ThrowingFunction<T,R,E extends Exception>
| Modifier and Type | Method and Description |
|---|---|
default <V> ThrowingFunction<T,V,E> |
andThen(ThrowingFunction<? super R,? extends V,? extends E> after) |
R |
apply(T arg) |
default <V> ThrowingFunction<V,R,E> |
compose(ThrowingFunction<? super V,? extends T,? extends E> before) |
default Function<T,Optional<R>> |
lift() |
static <T,R> Function<T,Optional<R>> |
lifted(ThrowingFunction<T,R,?> f) |
static <T1,R> Function<T1,R> |
sneaky(ThrowingFunction<? super T1,? extends R,?> function) |
default Function<T,R> |
uncheck() |
static <T,R> Function<T,R> |
unchecked(ThrowingFunction<T,R,?> f) |
static <T,R> Function<T,Optional<R>> lifted(ThrowingFunction<T,R,?> f)
static <T,R> Function<T,R> unchecked(ThrowingFunction<T,R,?> f)
static <T1,R> Function<T1,R> sneaky(ThrowingFunction<? super T1,? extends R,?> function)
default <V> ThrowingFunction<V,R,E> compose(ThrowingFunction<? super V,? extends T,? extends E> before)
default <V> ThrowingFunction<T,V,E> andThen(ThrowingFunction<? super R,? extends V,? extends E> after)
Copyright © 2020. All rights reserved.