Interface FailableBiFunction<T,U,R,E extends java.lang.Throwable>
-
- Type Parameters:
T- Input type 1.U- Input type 2.R- Return type.E- Thrown exception.
- 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 FailableBiFunction<T,U,R,E extends java.lang.Throwable>A functional interface likeBiFunctionthat declares aThrowable.- Since:
- 3.11
-
-
Field Summary
Fields Modifier and Type Field Description static FailableBiFunctionNOPNOP singleton
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <V> FailableBiFunction<T,U,V,E>andThen(FailableFunction<? super R,? extends V,E> after)Returns a composedFailableBiFunctionthat likeBiFunction.andThen(Function).Rapply(T input1, U input2)Applies this function.static <T,U,R,E extends java.lang.Throwable>
FailableBiFunction<T,U,R,E>nop()Returns The NOP singleton.
-
-
-
Field Detail
-
NOP
static final FailableBiFunction NOP
NOP singleton
-
-
Method Detail
-
nop
static <T,U,R,E extends java.lang.Throwable> FailableBiFunction<T,U,R,E> nop()
Returns The NOP singleton.- Type Parameters:
T- Consumed type 1.U- Consumed type 2.R- Return type.E- Thrown exception.- Returns:
- The NOP singleton.
-
andThen
default <V> FailableBiFunction<T,U,V,E> andThen(FailableFunction<? super R,? extends V,E> after)
Returns a composedFailableBiFunctionthat likeBiFunction.andThen(Function).- Type Parameters:
V- the output type of theafterfunction, and of the composed function.- Parameters:
after- the operation to perform after this one.- Returns:
- a composed
FailableBiFunctionthat likeBiFunction.andThen(Function). - Throws:
java.lang.NullPointerException- whenafteris null.
-
-