@FunctionalInterface
public interface ExceptionFunction<T,R,E extends java.lang.Exception>
Modifier and Type | Method and 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) |
R apply(T t) throws E extends java.lang.Exception
t
- the argumentE
- if an exception occursE extends java.lang.Exception
default <R2> ExceptionFunction<T,R2,E> andThen(ExceptionFunction<? super R,? extends R2,? extends E> after)
default <R2> ExceptionFunction<T,R2,E> andThen(ExceptionBiFunction<? super T,? super R,? extends R2,? extends E> after)
default <T2> ExceptionFunction<T2,R,E> compose(ExceptionFunction<? super T2,? extends T,? extends E> before)
default ExceptionConsumer<T,E> andThen(ExceptionConsumer<? super R,? extends E> after)
default ExceptionConsumer<T,E> andThen(ExceptionBiConsumer<? super T,? super R,? extends E> after)
default ExceptionPredicate<T,E> andThen(ExceptionPredicate<? super R,? extends E> after)
default ExceptionPredicate<T,E> andThen(ExceptionBiPredicate<? super T,? super R,? extends E> after)
default ExceptionSupplier<R,E> compose(ExceptionSupplier<? extends T,? extends E> before)
Copyright © 2015 JBoss, a division of Red Hat, Inc.