Package org.wildfly.common.function
Interface ExceptionFunction<T,R,E extends java.lang.Exception>
-
- All Known Subinterfaces:
ExceptionUnaryOperator<T,E>
- 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 ExceptionFunction<T,R,E extends java.lang.Exception>
A one-argument function which can throw an exception.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ExceptionConsumer<T,E>
andThen(ExceptionBiConsumer<? super T,? super R,? extends E> after)
default <R2> ExceptionFunction<T,R2,E>
andThen(ExceptionBiFunction<? super T,? super R,? extends R2,? extends E> after)
default ExceptionPredicate<T,E>
andThen(ExceptionBiPredicate<? super T,? super R,? extends E> after)
default ExceptionConsumer<T,E>
andThen(ExceptionConsumer<? super R,? extends E> after)
default <R2> ExceptionFunction<T,R2,E>
andThen(ExceptionFunction<? super R,? extends R2,? extends E> after)
default ExceptionPredicate<T,E>
andThen(ExceptionPredicate<? super R,? extends E> after)
R
apply(T t)
Applies this function to the given arguments.default <T2> ExceptionFunction<T2,R,E>
compose(ExceptionFunction<? super T2,? extends T,? extends E> before)
default ExceptionSupplier<R,E>
compose(ExceptionSupplier<? extends T,? extends E> before)
-
-
-
Method Detail
-
apply
R apply(T t) throws E extends java.lang.Exception
Applies this function to the given arguments.
-
andThen
default <R2> ExceptionFunction<T,R2,E> andThen(ExceptionFunction<? super R,? extends R2,? extends E> after)
-
andThen
default <R2> ExceptionFunction<T,R2,E> andThen(ExceptionBiFunction<? super T,? super R,? extends R2,? extends E> after)
-
compose
default <T2> ExceptionFunction<T2,R,E> compose(ExceptionFunction<? super T2,? extends T,? extends E> before)
-
andThen
default ExceptionConsumer<T,E> andThen(ExceptionConsumer<? super R,? extends E> after)
-
andThen
default ExceptionConsumer<T,E> andThen(ExceptionBiConsumer<? super T,? super R,? extends E> after)
-
andThen
default ExceptionPredicate<T,E> andThen(ExceptionPredicate<? super R,? extends E> after)
-
andThen
default ExceptionPredicate<T,E> andThen(ExceptionBiPredicate<? super T,? super R,? extends E> after)
-
compose
default ExceptionSupplier<R,E> compose(ExceptionSupplier<? extends T,? extends E> before)
-
-