Package com.yahoo.yolean.function
Interface ThrowingFunction<T,R,E extends java.lang.Throwable>
-
- 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 ThrowingFunction<T,R,E extends java.lang.Throwable>
Functional interface that mirrors the Function interface, but allows for an exception to be thrown.- Author:
- oyving
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> ThrowingFunction<T,V,E>
andThen(ThrowingFunction<? super R,? extends V,? extends E> after)
R
apply(T input)
default <V> ThrowingFunction<V,R,E>
compose(ThrowingFunction<? super V,? extends T,? extends E> before)
-
-
-
Method Detail
-
andThen
default <V> ThrowingFunction<T,V,E> andThen(ThrowingFunction<? super R,? extends V,? extends E> after)
-
compose
default <V> ThrowingFunction<V,R,E> compose(ThrowingFunction<? super V,? extends T,? extends E> before)
-
-