public final class TupleUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T1,T2> Consumer<reactor.util.function.Tuple2<T1,T2>> |
consumer(BiConsumer<T1,T2> consumer)
Returns a
Consumer of Tuple2 that wraps a consumer of the component values of the tuple |
static <T1,T2,T3> Consumer<reactor.util.function.Tuple3<T1,T2,T3>> |
consumer(Consumer3<T1,T2,T3> consumer)
Returns a
Consumer of Tuple3 that wraps a consumer of the component values of the tuple |
static <T1,T2,T3,T4> |
consumer(Consumer4<T1,T2,T3,T4> consumer)
Returns a
Consumer of Tuple4 that wraps a consumer of the component values of the tuple |
static <T1,T2,T3,T4,T5> |
consumer(Consumer5<T1,T2,T3,T4,T5> consumer)
Returns a
Consumer of Tuple5 that wraps a consumer of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6> |
consumer(Consumer6<T1,T2,T3,T4,T5,T6> consumer)
Returns a
Consumer of Tuple6 that wraps a consumer of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6,T7> |
consumer(Consumer7<T1,T2,T3,T4,T5,T6,T7> consumer)
Returns a
Consumer of Tuple7 that wraps a consumer of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
consumer(Consumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer)
Returns a
Consumer of Tuple8 that wraps a consumer of the component values of the tuple |
static <T1,T2,R> Function<reactor.util.function.Tuple2<T1,T2>,R> |
function(BiFunction<T1,T2,R> function)
Returns a
Function of Tuple2 that wraps a function of the component values of the tuple |
static <T1,T2,T3,R> |
function(Function3<T1,T2,T3,R> function)
Returns a
Function of Tuple3 that wraps a function of the component values of the tuple |
static <T1,T2,T3,T4,R> |
function(Function4<T1,T2,T3,T4,R> function)
Returns a
Function of Tuple4 that wraps a function of the component values of the tuple |
static <T1,T2,T3,T4,T5,R> |
function(Function5<T1,T2,T3,T4,T5,R> function)
Returns a
Function of Tuple5 that wraps a function of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6,R> |
function(Function6<T1,T2,T3,T4,T5,T6,R> function)
Returns a
Function of Tuple6 that wraps a function of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6,T7,R> |
function(Function7<T1,T2,T3,T4,T5,T6,T7,R> function)
Returns a
Function of Tuple7 that wraps a function of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6,T7,T8,R> |
function(Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> function)
Returns a
Function of Tuple8 that wraps a function of the component values of the tuple |
static <T1,T2> Predicate<reactor.util.function.Tuple2<T1,T2>> |
predicate(BiPredicate<T1,T2> predicate)
Returns a
Predicate of Tuple2 that wraps a predicate of the component values of the tuple |
static <T1,T2,T3> Predicate<reactor.util.function.Tuple3<T1,T2,T3>> |
predicate(Predicate3<T1,T2,T3> predicate)
Returns a
Predicate of Tuple3 that wraps a predicate of the component values of the tuple |
static <T1,T2,T3,T4> |
predicate(Predicate4<T1,T2,T3,T4> predicate)
Returns a
Predicate of Tuple4 that wraps a predicate of the component values of the tuple |
static <T1,T2,T3,T4,T5> |
predicate(Predicate5<T1,T2,T3,T4,T5> predicate)
Returns a
Predicate of Tuple5 that wraps a predicate of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6> |
predicate(Predicate6<T1,T2,T3,T4,T5,T6> predicate)
Returns a
Predicate of Tuple6 that wraps a predicate of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6,T7> |
predicate(Predicate7<T1,T2,T3,T4,T5,T6,T7> predicate)
Returns a
Predicate of Tuple7 that wraps a predicate of the component values of the tuple |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
predicate(Predicate8<T1,T2,T3,T4,T5,T6,T7,T8> predicate)
Returns a
Predicate of Tuple8 that wraps a predicate of the component values of the tuple |
public static <T1,T2> Consumer<reactor.util.function.Tuple2<T1,T2>> consumer(BiConsumer<T1,T2> consumer)
Consumer
of Tuple2
that wraps a consumer of the component values of the tupleT1
- the type of the first valueT2
- the type of the second valueconsumer
- the component value consumerpublic static <T1,T2,T3> Consumer<reactor.util.function.Tuple3<T1,T2,T3>> consumer(Consumer3<T1,T2,T3> consumer)
Consumer
of Tuple3
that wraps a consumer of the component values of the tupleT1
- 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<reactor.util.function.Tuple4<T1,T2,T3,T4>> consumer(Consumer4<T1,T2,T3,T4> consumer)
Consumer
of Tuple4
that wraps a consumer of the component values of the tupleT1
- 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<reactor.util.function.Tuple5<T1,T2,T3,T4,T5>> consumer(Consumer5<T1,T2,T3,T4,T5> consumer)
Consumer
of Tuple5
that wraps a consumer of the component values of the tupleT1
- 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<reactor.util.function.Tuple6<T1,T2,T3,T4,T5,T6>> consumer(Consumer6<T1,T2,T3,T4,T5,T6> consumer)
Consumer
of Tuple6
that wraps a consumer of the component values of the tupleT1
- 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<reactor.util.function.Tuple7<T1,T2,T3,T4,T5,T6,T7>> consumer(Consumer7<T1,T2,T3,T4,T5,T6,T7> consumer)
Consumer
of Tuple7
that wraps a consumer of the component values of the tupleT1
- 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<reactor.util.function.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>> consumer(Consumer8<T1,T2,T3,T4,T5,T6,T7,T8> consumer)
Consumer
of Tuple8
that wraps a consumer of the component values of the tupleT1
- 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<reactor.util.function.Tuple2<T1,T2>,R> function(BiFunction<T1,T2,R> function)
Function
of Tuple2
that wraps a function of the component values of the tupleT1
- 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<reactor.util.function.Tuple3<T1,T2,T3>,R> function(Function3<T1,T2,T3,R> function)
Function
of Tuple3
that wraps a function of the component values of the tupleT1
- 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<reactor.util.function.Tuple4<T1,T2,T3,T4>,R> function(Function4<T1,T2,T3,T4,R> function)
Function
of Tuple4
that wraps a function of the component values of the tupleT1
- 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<reactor.util.function.Tuple5<T1,T2,T3,T4,T5>,R> function(Function5<T1,T2,T3,T4,T5,R> function)
Function
of Tuple5
that wraps a function of the component values of the tupleT1
- 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<reactor.util.function.Tuple6<T1,T2,T3,T4,T5,T6>,R> function(Function6<T1,T2,T3,T4,T5,T6,R> function)
Function
of Tuple6
that wraps a function of the component values of the tupleT1
- 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<reactor.util.function.Tuple7<T1,T2,T3,T4,T5,T6,T7>,R> function(Function7<T1,T2,T3,T4,T5,T6,T7,R> function)
Function
of Tuple7
that wraps a function of the component values of the tupleT1
- 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<reactor.util.function.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>,R> function(Function8<T1,T2,T3,T4,T5,T6,T7,T8,R> function)
Function
of Tuple8
that wraps a function of the component values of the tupleT1
- 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<reactor.util.function.Tuple2<T1,T2>> predicate(BiPredicate<T1,T2> predicate)
Predicate
of Tuple2
that wraps a predicate of the component values of the tupleT1
- the type of the first valueT2
- the type of the second valuepredicate
- the component value predicatepublic static <T1,T2,T3> Predicate<reactor.util.function.Tuple3<T1,T2,T3>> predicate(Predicate3<T1,T2,T3> predicate)
Predicate
of Tuple3
that wraps a predicate of the component values of the tupleT1
- 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<reactor.util.function.Tuple4<T1,T2,T3,T4>> predicate(Predicate4<T1,T2,T3,T4> predicate)
Predicate
of Tuple4
that wraps a predicate of the component values of the tupleT1
- 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<reactor.util.function.Tuple5<T1,T2,T3,T4,T5>> predicate(Predicate5<T1,T2,T3,T4,T5> predicate)
Predicate
of Tuple5
that wraps a predicate of the component values of the tupleT1
- 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<reactor.util.function.Tuple6<T1,T2,T3,T4,T5,T6>> predicate(Predicate6<T1,T2,T3,T4,T5,T6> predicate)
Predicate
of Tuple6
that wraps a predicate of the component values of the tupleT1
- 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<reactor.util.function.Tuple7<T1,T2,T3,T4,T5,T6,T7>> predicate(Predicate7<T1,T2,T3,T4,T5,T6,T7> predicate)
Predicate
of Tuple7
that wraps a predicate of the component values of the tupleT1
- 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<reactor.util.function.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>> predicate(Predicate8<T1,T2,T3,T4,T5,T6,T7,T8> predicate)
Predicate
of Tuple8
that wraps a predicate of the component values of the tupleT1
- 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