Package dev.jlet
Class JLet
java.lang.Object
dev.jlet.JLet
JLet functions.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <R> Rit(ThrowingSupplier<? extends R, ?> block) Calls the specified function block and returns its result.static <T1,T2> T1 it(T1 t1, T2 t2, ThrowingConsumer2<? super T1, ? super T2, ?> block) Calls the specified function block with the given values and returns the first value.static <T1,T2, T3>
T1it(T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1, ? super T2, ? super T3, ?> block) Calls the specified function block with the given values and returns the first value.static <T1,T2, T3, T4>
T1it(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1, ? super T2, ? super T3, ? super T4, ?> block) Calls the specified function block with the given values and returns the first value.static <T1,T2, T3, T4, T5>
T1it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ?> block) Calls the specified function block with the given values and returns the first value.static <T1,T2, T3, T4, T5, T6>
T1it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ?> block) Calls the specified function block with the given values and returns the first value.static <T1,T2, T3, T4, T5, T6, T7>
T1it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Calls the specified function block with the given values and returns the first value.static <T1,T2, T3, T4, T5, T6, T7, T8>
T1it(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ?> block) Calls the specified function block with the given values and returns the first value.static <T> Tit(T t, ThrowingConsumer<? super T, ?> block) Calls the specified function block with the given value and returns this value.static <T1,T2, R>
Rlet(T1 t1, T2 t2, ThrowingFunction2<? super T1, ? super T2, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.static <T1,T2, T3, R>
Rlet(T1 t1, T2 t2, T3 t3, ThrowingFunction3<? super T1, ? super T2, ? super T3, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.static <T1,T2, T3, T4, R>
Rlet(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingFunction4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.static <T1,T2, T3, T4, T5, R>
Rlet(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingFunction5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.static <T1,T2, T3, T4, T5, T6, R>
Rlet(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingFunction6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.static <T1,T2, T3, T4, T5, T6, T7, R>
Rlet(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingFunction7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.static <T1,T2, T3, T4, T5, T6, T7, T8, R>
Rlet(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingFunction8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.static <T,R> R let(T t, ThrowingFunction<? super T, ? extends R, ?> block) Calls the specified function block with the given value and returns its result.static voidrun(ThrowingRunnable<?> block) Calls the specified function block.static booleantest(ThrowingBooleanSupplier<?> block) Calls the specified function block and returns itsbooleanresult.static <T1,T2> boolean test(T1 t1, T2 t2, ThrowingPredicate2<? super T1, ? super T2, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T1,T2, T3>
booleantest(T1 t1, T2 t2, T3 t3, ThrowingPredicate3<? super T1, ? super T2, ? super T3, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T1,T2, T3, T4>
booleantest(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingPredicate4<? super T1, ? super T2, ? super T3, ? super T4, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T1,T2, T3, T4, T5>
booleantest(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingPredicate5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T1,T2, T3, T4, T5, T6>
booleantest(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingPredicate6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T1,T2, T3, T4, T5, T6, T7>
booleantest(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingPredicate7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T1,T2, T3, T4, T5, T6, T7, T8>
booleantest(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingPredicate8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T> booleantest(T t, ThrowingPredicate<? super T, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.static <T1,T2> void with(T1 t1, T2 t2, ThrowingConsumer2<? super T1, ? super T2, ?> block) Calls the specified function block with the given values.static <T1,T2, T3>
voidwith(T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1, ? super T2, ? super T3, ?> block) Calls the specified function block with the given values.static <T1,T2, T3, T4>
voidwith(T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1, ? super T2, ? super T3, ? super T4, ?> block) Calls the specified function block with the given values.static <T1,T2, T3, T4, T5>
voidwith(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ?> block) Calls the specified function block with the given values.static <T1,T2, T3, T4, T5, T6>
voidwith(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ?> block) Calls the specified function block with the given values.static <T1,T2, T3, T4, T5, T6, T7>
voidwith(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Calls the specified function block with the given values.static <T1,T2, T3, T4, T5, T6, T7, T8>
voidwith(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ?> block) Calls the specified function block with the given values.static <T> voidwith(T t, ThrowingConsumer<? super T, ?> block) Calls the specified function block with the given value.
-
Method Details
-
it
Calls the specified function block and returns its result.- Type Parameters:
R- type of the function block result- Parameters:
block- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
it
Calls the specified function block with the given value and returns this value.- Type Parameters:
T- type of the value- Parameters:
t- the valueblock- the function block- Returns:
- value
- Throws:
NullPointerException- ifblockarg isnull
-
it
Calls the specified function block with the given values and returns the first value.- Type Parameters:
T1- type of the first valueT2- type of the second value- Parameters:
t1- the first valuet2- the second valueblock- the function block- Returns:
- first value
- Throws:
NullPointerException- ifblockarg isnull
-
it
public static <T1,T2, T1 itT3> (T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1, ? super T2, ? super T3, ?> block) Calls the specified function block with the given values and returns the first value.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third value- Parameters:
t1- the first valuet2- the second valuet3- the third valueblock- the function block- Returns:
- first value
- Throws:
NullPointerException- ifblockarg isnull
-
it
public static <T1,T2, T1 itT3, T4> (T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1, ? super T2, ? super T3, ? super T4, ?> block) Calls the specified function block with the given values and returns the first value.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valueblock- the function block- Returns:
- first value
- Throws:
NullPointerException- ifblockarg isnull
-
it
public static <T1,T2, T1 itT3, T4, T5> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ?> block) Calls the specified function block with the given values and returns the first value.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valueblock- the function block- Returns:
- first value
- Throws:
NullPointerException- ifblockarg isnull
-
it
public static <T1,T2, T1 itT3, T4, T5, T6> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ?> block) Calls the specified function block with the given values and returns the first value.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valueblock- the function block- Returns:
- first value
- Throws:
NullPointerException- ifblockarg isnull
-
it
public static <T1,T2, T1 itT3, T4, T5, T6, T7> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Calls the specified function block with the given values and returns the first value.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valueblock- the function block- Returns:
- first value
- Throws:
NullPointerException- ifblockarg isnull
-
it
public static <T1,T2, T1 itT3, T4, T5, T6, T7, T8> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ?> block) Calls the specified function block with the given values and returns the first value.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh valueT8- type of the eighth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valuet8- the eighth valueblock- the function block- Returns:
- first value
- Throws:
NullPointerException- ifblockarg isnull
-
let
Calls the specified function block with the given value and returns its result.- Type Parameters:
T- type of the valueR- type of the function block result- Parameters:
t- the valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
let
public static <T1,T2, R letR> (T1 t1, T2 t2, ThrowingFunction2<? super T1, ? super T2, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.- Type Parameters:
T1- type of the first valueT2- type of the second valueR- type of the function block result- Parameters:
t1- the first valuet2- the second valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
let
public static <T1,T2, R letT3, R> (T1 t1, T2 t2, T3 t3, ThrowingFunction3<? super T1, ? super T2, ? super T3, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueR- type of the function block result- Parameters:
t1- the first valuet2- the second valuet3- the third valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
let
public static <T1,T2, R letT3, T4, R> (T1 t1, T2 t2, T3 t3, T4 t4, ThrowingFunction4<? super T1, ? super T2, ? super T3, ? super T4, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueR- type of the function block result- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
let
public static <T1,T2, R letT3, T4, T5, R> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingFunction5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueR- type of the function block result- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
let
public static <T1,T2, R letT3, T4, T5, T6, R> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingFunction6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueR- type of the function block result- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
let
public static <T1,T2, R letT3, T4, T5, T6, T7, R> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingFunction7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh valueR- type of the function block result- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
let
public static <T1,T2, R letT3, T4, T5, T6, T7, T8, R> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingFunction8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ? extends R, ?> block) Calls the specified function block with the given values and returns its result.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh valueT8- type of the eighth valueR- type of the function block result- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valuet8- the eighth valueblock- the function block- Returns:
- function block result
- Throws:
NullPointerException- ifblockarg isnull
-
test
Calls the specified function block and returns itsbooleanresult.- Parameters:
block- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T- type of the value- Parameters:
t- the sixth valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
public static <T1,T2> boolean test(T1 t1, T2 t2, ThrowingPredicate2<? super T1, ? super T2, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T1- type of the first valueT2- type of the second value- Parameters:
t1- the first valuet2- the second valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
public static <T1,T2, boolean testT3> (T1 t1, T2 t2, T3 t3, ThrowingPredicate3<? super T1, ? super T2, ? super T3, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third value- Parameters:
t1- the first valuet2- the second valuet3- the third valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
public static <T1,T2, boolean testT3, T4> (T1 t1, T2 t2, T3 t3, T4 t4, ThrowingPredicate4<? super T1, ? super T2, ? super T3, ? super T4, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
public static <T1,T2, boolean testT3, T4, T5> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingPredicate5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
public static <T1,T2, boolean testT3, T4, T5, T6> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingPredicate6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
public static <T1,T2, boolean testT3, T4, T5, T6, T7> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingPredicate7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
test
public static <T1,T2, boolean testT3, T4, T5, T6, T7, T8> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingPredicate8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ?> block) Calls the specified function block with the given values and returns itsbooleanresult.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh valueT8- type of the eighth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valuet8- the eighth valueblock- the function block- Returns:
- function block
booleanresult - Throws:
NullPointerException- ifblockarg isnull
-
run
Calls the specified function block.- Parameters:
block- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
Calls the specified function block with the given value.- Type Parameters:
T- type of the value- Parameters:
t- the valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
Calls the specified function block with the given values.- Type Parameters:
T1- type of the first valueT2- type of the second value- Parameters:
t1- the first valuet2- the second valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
public static <T1,T2, void withT3> (T1 t1, T2 t2, T3 t3, ThrowingConsumer3<? super T1, ? super T2, ? super T3, ?> block) Calls the specified function block with the given values.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third value- Parameters:
t1- the first valuet2- the second valuet3- the third valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
public static <T1,T2, void withT3, T4> (T1 t1, T2 t2, T3 t3, T4 t4, ThrowingConsumer4<? super T1, ? super T2, ? super T3, ? super T4, ?> block) Calls the specified function block with the given values.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
public static <T1,T2, void withT3, T4, T5> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, ThrowingConsumer5<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ?> block) Calls the specified function block with the given values.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
public static <T1,T2, void withT3, T4, T5, T6> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, ThrowingConsumer6<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ?> block) Calls the specified function block with the given values.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
public static <T1,T2, void withT3, T4, T5, T6, T7> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, ThrowingConsumer7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Calls the specified function block with the given values.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-
with
public static <T1,T2, void withT3, T4, T5, T6, T7, T8> (T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, ThrowingConsumer8<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? super T8, ?> block) Calls the specified function block with the given values.- Type Parameters:
T1- type of the first valueT2- type of the second valueT3- type of the third valueT4- type of the fourth valueT5- type of the fifth valueT6- type of the sixth valueT7- type of the seventh valueT8- type of the eighth value- Parameters:
t1- the first valuet2- the second valuet3- the third valuet4- the fourth valuet5- the fifth valuet6- the sixth valuet7- the seventh valuet8- the eighth valueblock- the function block- Throws:
NullPointerException- ifblockarg isnull
-