Package dev.jlet.function
Interface ThrowingFunction3<T1,T2,T3,R,E extends Throwable>
- Type Parameters:
T1- type of the first input argumentT2- type of the second input argumentT3- type of the third input argumentR- type of the resultE- type of the throwing exception
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The
Function specialization for 3 arguments that might throw an exception.-
Method Summary
Modifier and TypeMethodDescriptionApplies this function to the given arguments.static <T1,T2, T3, R, E extends Throwable>
ThrowingFunction3<T1, T2, T3, R, E> of(ThrowingFunction3<? super T1, ? super T2, ? super T3, ? extends R, ? extends E> block) Returns given function.static <T1,T2, T3, R>
ThrowingFunction3<T1, T2, T3, R, Error> unchecked(ThrowingFunction3<? super T1, ? super T2, ? super T3, ? extends R, ?> block) Returns given function as an unchecked function.
-
Method Details
-
apply
Applies this function to the given arguments.- Parameters:
t1- the first input argumentt2- the second input argumentt3- the third input argument- Returns:
- result
- Throws:
E- if function threw exception
-
of
static <T1,T2, ThrowingFunction3<T1,T3, R, E extends Throwable> T2, ofT3, R, E> (ThrowingFunction3<? super T1, ? super T2, ? super T3, ? extends R, ? extends E> block) Returns given function.- Type Parameters:
T1- type of the first input argumentT2- type of the second input argumentT3- type of the third input argumentR- type of the resultE- type of the throwing exception- Parameters:
block- the function- Returns:
- function
- Throws:
NullPointerException- ifblockarg isnull
-
unchecked
static <T1,T2, ThrowingFunction3<T1,T3, R> T2, uncheckedT3, R, Error> (ThrowingFunction3<? super T1, ? super T2, ? super T3, ? extends R, ?> block) Returns given function as an unchecked function.- Type Parameters:
T1- type of the first input argumentT2- type of the second input argumentT3- type of the third input argumentR- type of the result- Parameters:
block- the origin function- Returns:
- unchecked function
- Throws:
NullPointerException- ifblockarg isnull
-