Package com.pivovarit.function
Interface ThrowingBiFunction<T1,T2,R,E extends Exception>
- Type Parameters:
T1- the type of the first argument to the functionT2- the type of the second argument to the functionR- the type of the result of the functionE- the type of the thrown checked exception
- All Known Subinterfaces:
ThrowingBinaryOperator<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.
Represents a function that accepts two arguments and produces a result.
This is the two-arity specialization of
ThrowingFunction.
Function may throw a checked exception.- Author:
- Grzegorz Piwowarek
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault <V> ThrowingBiFunction<T1, T2, V, E> andThen(ThrowingFunction<? super R, ? extends V, ? extends E> after) Performs provided action on the result of this ThrowingBiFunction instancedefault BiFunction<T1, T2, Optional<R>> lift()static <T1,T2, R>
BiFunction<T1, T2, Optional<R>> lifted(ThrowingBiFunction<T1, T2, R, ?> f) static <T1,T2, R>
BiFunction<T1, T2, R> sneaky(ThrowingBiFunction<? super T1, ? super T2, ? extends R, ?> function) default BiFunction<T1, T2, R> static <T1,T2, R>
BiFunction<T1, T2, R> unchecked(ThrowingBiFunction<T1, T2, R, ?> function)
-
Method Details
-
apply
- Throws:
E
-
unchecked
-
sneaky
static <T1,T2, BiFunction<T1,R> T2, sneakyR> (ThrowingBiFunction<? super T1, ? super T2, ? extends R, ?> function) -
lifted
-
andThen
default <V> ThrowingBiFunction<T1,T2, andThenV, E> (ThrowingFunction<? super R, ? extends V, ? extends E> after) Performs provided action on the result of this ThrowingBiFunction instance- Type Parameters:
V- after function's result type- Parameters:
after- action that is supposed to be made on the result of apply()- Returns:
- combined function
-
unchecked
-
lift
-