Package com.yahoo.yolean.function
Interface ThrowingFunction<T,R,E extends Throwable>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Functional interface that mirrors the Function interface, but allows for an
exception to be thrown.
- Author:
- oyving
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> ThrowingFunction<T,
V, E> andThen
(ThrowingFunction<? super R, ? extends V, ? extends E> after) default <V> ThrowingFunction<V,
R, E> compose
(ThrowingFunction<? super V, ? extends T, ? extends E> before)
-
Method Details
-
apply
-
andThen
default <V> ThrowingFunction<T,V, andThenE> (ThrowingFunction<? super R, ? extends V, ? extends E> after) -
compose
default <V> ThrowingFunction<V,R, composeE> (ThrowingFunction<? super V, ? extends T, ? extends E> before)
-