Interface CheckedFunction1<T1,R,E extends java.lang.Throwable>
-
- All Superinterfaces:
java.util.function.Function<T1,R>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface CheckedFunction1<T1,R,E extends java.lang.Throwable> extends java.util.function.Function<T1,R>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V,E1 extends java.lang.Throwable>
CheckedFunction1<T1,V,E1>andThen(CheckedFunction1<? super R,? extends V,E1> after)
default R
apply(T1 t)
R
checkedApply(T1 t)
default <V,E1 extends java.lang.Throwable>
CheckedFunction1<V,R,E1>compose(CheckedFunction1<? super V,? extends T1,E1> before)
static <T1,R,E extends java.lang.Throwable>
CheckedFunction1<T1,R,E>of(CheckedFunction1<T1,R,E> function)
default java.util.Optional<R>
toOptional(T1 t)
-
-
-
Method Detail
-
checkedApply
R checkedApply(T1 t) throws E extends java.lang.Throwable
- Throws:
E extends java.lang.Throwable
-
compose
default <V,E1 extends java.lang.Throwable> CheckedFunction1<V,R,E1> compose(CheckedFunction1<? super V,? extends T1,E1> before)
-
andThen
default <V,E1 extends java.lang.Throwable> CheckedFunction1<T1,V,E1> andThen(CheckedFunction1<? super R,? extends V,E1> after)
-
of
static <T1,R,E extends java.lang.Throwable> CheckedFunction1<T1,R,E> of(CheckedFunction1<T1,R,E> function)
-
-