public final class TupleUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> java.util.function.Consumer<Tuple2<T1,T2>> |
consumer(java.util.function.BiConsumer<T1,T2> consumer)
|
static <T1,T2,T3> java.util.function.Consumer<Tuple3<T1,T2,T3>> |
consumer(Consumer3<T1,T2,T3> consumer)
|
static <T1,T2,T3,T4> |
consumer(Consumer4<T1,T2,T3,T4> consumer)
|
static <T1,T2,T3,T4,T5> |
consumer(Consumer5<T1,T2,T3,T4,T5> consumer)
|
static <T1,T2,T3,T4,T5,T6> |
consumer(Consumer6<T1,T2,T3,T4,T5,T6> consumer)
|
static <T1,T2,T3,T4,T5,T6,T7> |
consumer(Consumer7<T1,T2,T3,T4,T5,T6,T7> consumer)
|
static <T1,T2,T3,T4,T5,T6,T7,T8> |
consumer(Consumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer)
|
static <T1,T2,R> java.util.function.Function<Tuple2<T1,T2>,R> |
function(java.util.function.BiFunction<T1,T2,R> function)
|
static <T1,T2,T3,R> |
function(Function3<T1,T2,T3,R> function)
|
static <T1,T2,T3,T4,R> |
function(Function4<T1,T2,T3,T4,R> function)
|
static <T1,T2,T3,T4,T5,R> |
function(Function5<T1,T2,T3,T4,T5,R> function)
|
static <T1,T2,T3,T4,T5,T6,R> |
function(Function6<T1,T2,T3,T4,T5,T6,R> function)
|
static <T1,T2,T3,T4,T5,T6,T7,R> |
function(Function7<T1,T2,T3,T4,T5,T6,T7,R> function)
|
static <T1,T2,T3,T4,T5,T6,T7,T8,R> |
function(Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> function)
|
static <T1,T2> java.util.function.Predicate<Tuple2<T1,T2>> |
predicate(java.util.function.BiPredicate<T1,T2> predicate)
|
static <T1,T2,T3> java.util.function.Predicate<Tuple3<T1,T2,T3>> |
predicate(Predicate3<T1,T2,T3> predicate)
|
static <T1,T2,T3,T4> |
predicate(Predicate4<T1,T2,T3,T4> predicate)
|
static <T1,T2,T3,T4,T5> |
predicate(Predicate5<T1,T2,T3,T4,T5> predicate)
|
static <T1,T2,T3,T4,T5,T6> |
predicate(Predicate6<T1,T2,T3,T4,T5,T6> predicate)
|
static <T1,T2,T3,T4,T5,T6,T7> |
predicate(Predicate7<T1,T2,T3,T4,T5,T6,T7> predicate)
|
static <T1,T2,T3,T4,T5,T6,T7,T8> |
predicate(Predicate8<T1,T2,T3,T4,T5,T6,T7,T8> predicate)
|
public static <T1,T2> java.util.function.Consumer<Tuple2<T1,T2>> consumer(java.util.function.BiConsumer<T1,T2> consumer)
T1 - the type of the first valueT2 - the type of the second valueconsumer - the component value consumerpublic static <T1,T2,T3> java.util.function.Consumer<Tuple3<T1,T2,T3>> consumer(Consumer3<T1,T2,T3> consumer)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueconsumer - the component value consumerpublic static <T1,T2,T3,T4> java.util.function.Consumer<Tuple4<T1,T2,T3,T4>> consumer(Consumer4<T1,T2,T3,T4> consumer)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueconsumer - the component value consumerpublic static <T1,T2,T3,T4,T5> java.util.function.Consumer<Tuple5<T1,T2,T3,T4,T5>> consumer(Consumer5<T1,T2,T3,T4,T5> consumer)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueconsumer - the component value consumerpublic static <T1,T2,T3,T4,T5,T6> java.util.function.Consumer<Tuple6<T1,T2,T3,T4,T5,T6>> consumer(Consumer6<T1,T2,T3,T4,T5,T6> consumer)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueconsumer - the component value consumerpublic static <T1,T2,T3,T4,T5,T6,T7> java.util.function.Consumer<Tuple7<T1,T2,T3,T4,T5,T6,T7>> consumer(Consumer7<T1,T2,T3,T4,T5,T6,T7> consumer)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueT7 - the type of the seventh valueconsumer - the component value consumerpublic static <T1,T2,T3,T4,T5,T6,T7,T8> java.util.function.Consumer<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>> consumer(Consumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueT7 - the type of the seventh valueT8 - the type of the eighth valueconsumer - the component value consumerpublic static <T1,T2,R> java.util.function.Function<Tuple2<T1,T2>,R> function(java.util.function.BiFunction<T1,T2,R> function)
T1 - the type of the first valueT2 - the type of the second valueR - the type of the result of the functionfunction - the component value functionpublic static <T1,T2,T3,R> java.util.function.Function<Tuple3<T1,T2,T3>,R> function(Function3<T1,T2,T3,R> function)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueR - the type of the result of the functionfunction - the component value functionpublic static <T1,T2,T3,T4,R> java.util.function.Function<Tuple4<T1,T2,T3,T4>,R> function(Function4<T1,T2,T3,T4,R> function)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueR - the type of the result of the functionfunction - the component value functionpublic static <T1,T2,T3,T4,T5,R> java.util.function.Function<Tuple5<T1,T2,T3,T4,T5>,R> function(Function5<T1,T2,T3,T4,T5,R> function)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueR - the type of the result of the functionfunction - the component value functionpublic static <T1,T2,T3,T4,T5,T6,R> java.util.function.Function<Tuple6<T1,T2,T3,T4,T5,T6>,R> function(Function6<T1,T2,T3,T4,T5,T6,R> function)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueR - the type of the result of the functionfunction - the component value functionpublic static <T1,T2,T3,T4,T5,T6,T7,R> java.util.function.Function<Tuple7<T1,T2,T3,T4,T5,T6,T7>,R> function(Function7<T1,T2,T3,T4,T5,T6,T7,R> function)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueT7 - the type of the seventh valueR - the type of the result of the functionfunction - the component value functionpublic static <T1,T2,T3,T4,T5,T6,T7,T8,R> java.util.function.Function<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> function(Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> function)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueT7 - the type of the seventh valueT8 - the type of the eighth valueR - the type of the result of the functionfunction - the component value functionpublic static <T1,T2> java.util.function.Predicate<Tuple2<T1,T2>> predicate(java.util.function.BiPredicate<T1,T2> predicate)
T1 - the type of the first valueT2 - the type of the second valuepredicate - the component value predicatepublic static <T1,T2,T3> java.util.function.Predicate<Tuple3<T1,T2,T3>> predicate(Predicate3<T1,T2,T3> predicate)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valuepredicate - the component value predicatepublic static <T1,T2,T3,T4> java.util.function.Predicate<Tuple4<T1,T2,T3,T4>> predicate(Predicate4<T1,T2,T3,T4> predicate)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valuepredicate - the component value predicatepublic static <T1,T2,T3,T4,T5> java.util.function.Predicate<Tuple5<T1,T2,T3,T4,T5>> predicate(Predicate5<T1,T2,T3,T4,T5> predicate)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valuepredicate - the component value predicatepublic static <T1,T2,T3,T4,T5,T6> java.util.function.Predicate<Tuple6<T1,T2,T3,T4,T5,T6>> predicate(Predicate6<T1,T2,T3,T4,T5,T6> predicate)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valuepredicate - the component value predicatepublic static <T1,T2,T3,T4,T5,T6,T7> java.util.function.Predicate<Tuple7<T1,T2,T3,T4,T5,T6,T7>> predicate(Predicate7<T1,T2,T3,T4,T5,T6,T7> predicate)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueT7 - the type of the seventh valuepredicate - the component value predicatepublic static <T1,T2,T3,T4,T5,T6,T7,T8> java.util.function.Predicate<Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>> predicate(Predicate8<T1,T2,T3,T4,T5,T6,T7,T8> predicate)
T1 - the type of the first valueT2 - the type of the second valueT3 - the type of the third valueT4 - the type of the fourth valueT5 - the type of the fifth valueT6 - the type of the sixth valueT7 - the type of the seventh valueT8 - the type of the eighth valuepredicate - the component value predicate