public final class TupleUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T1,T2> Consumer<Tuple2<T1,T2>> |
consumer(BiConsumer<T1,T2> consumer)
|
static <T1,T2,T3> 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> Function<Tuple2<T1,T2>,R> |
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> Predicate<Tuple2<T1,T2>> |
predicate(BiPredicate<T1,T2> predicate)
|
static <T1,T2,T3> 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> Consumer<Tuple2<T1,T2>> consumer(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> 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> 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> 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> 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> 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> 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> Function<Tuple2<T1,T2>,R> 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> 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> 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> 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> 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> 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> 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> Predicate<Tuple2<T1,T2>> predicate(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> 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> 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> 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> 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> 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> 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