@Immutable public abstract class Tuple<TP> extends Object implements Immutable
| Modifier and Type | Class and Description |
|---|---|
static class |
Tuple.Tuple1<T1>
The Class Tuple1.
|
static class |
Tuple.Tuple2<T1,T2>
The Class Tuple2.
|
static class |
Tuple.Tuple3<T1,T2,T3>
The Class Tuple3.
|
static class |
Tuple.Tuple4<T1,T2,T3,T4>
The Class Tuple4.
|
static class |
Tuple.Tuple5<T1,T2,T3,T4,T5>
The Class Tuple5.
|
static class |
Tuple.Tuple6<T1,T2,T3,T4,T5,T6>
The Class Tuple6.
|
static class |
Tuple.Tuple7<T1,T2,T3,T4,T5,T6,T7>
The Class Tuple7.
|
static class |
Tuple.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8>
The Class Tuple8.
|
static class |
Tuple.Tuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9>
The Class Tuple9.
|
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
accept(Throwables.Consumer<? super TP,E> action) |
abstract boolean |
allNull() |
abstract boolean |
anyNull() |
abstract int |
arity() |
abstract boolean |
contains(Object objToFind) |
<E extends Exception> |
filter(Throwables.Predicate<? super TP,E> predicate) |
static <T1,T2,T3> Tuple.Tuple3<T1,T2,T3> |
flatten(Tuple.Tuple2<Tuple.Tuple2<T1,T2>,T3> tp) |
static <T1,T2,T3,T4,T5> |
flatten(Tuple.Tuple3<Tuple.Tuple3<T1,T2,T3>,T4,T5> tp) |
abstract <E extends Exception> |
forEach(Throwables.Consumer<?,E> consumer) |
static <TP extends Tuple<TP>> |
from(Collection<?> c) |
static <K,V> Tuple.Tuple2<K,V> |
from(Map.Entry<K,V> entry) |
static <TP extends Tuple<TP>> |
from(Object[] a) |
<U,E extends Exception> |
map(Throwables.Function<? super TP,U,E> mapper) |
static <T1> Tuple.Tuple1<T1> |
of(T1 _1) |
static <T1,T2> Tuple.Tuple2<T1,T2> |
of(T1 _1,
T2 _2) |
static <T1,T2,T3> Tuple.Tuple3<T1,T2,T3> |
of(T1 _1,
T2 _2,
T3 _3) |
static <T1,T2,T3,T4> |
of(T1 _1,
T2 _2,
T3 _3,
T4 _4) |
static <T1,T2,T3,T4,T5> |
of(T1 _1,
T2 _2,
T3 _3,
T4 _4,
T5 _5) |
static <T1,T2,T3,T4,T5,T6> |
of(T1 _1,
T2 _2,
T3 _3,
T4 _4,
T5 _5,
T6 _6) |
static <T1,T2,T3,T4,T5,T6,T7> |
of(T1 _1,
T2 _2,
T3 _3,
T4 _4,
T5 _5,
T6 _6,
T7 _7) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
of(T1 _1,
T2 _2,
T3 _3,
T4 _4,
T5 _5,
T6 _6,
T7 _7,
T8 _8)
Deprecated.
you should consider using
class SomeClass { final T1 propName1, final T2 propName2...} |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
of(T1 _1,
T2 _2,
T3 _3,
T4 _4,
T5 _5,
T6 _6,
T7 _7,
T8 _8,
T9 _9)
Deprecated.
you should consider using
class SomeClass { final T1 propName1, final T2 propName2...} |
abstract Object[] |
toArray() |
abstract <A> A[] |
toArray(A[] a) |
static <T> List<T> |
toList(Tuple.Tuple1<? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple2<? extends T,? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple3<? extends T,? extends T,? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple4<? extends T,? extends T,? extends T,? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple5<? extends T,? extends T,? extends T,? extends T,? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple6<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple7<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple8<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp) |
static <T> List<T> |
toList(Tuple.Tuple9<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp) |
u.Optional<TP> |
toOptional() |
public abstract int arity()
public abstract boolean anyNull()
public abstract boolean allNull()
public abstract boolean contains(Object objToFind)
objToFind - public abstract Object[] toArray()
public abstract <A> A[] toArray(A[] a)
A - a - public abstract <E extends Exception> void forEach(Throwables.Consumer<?,E> consumer) throws E extends Exception
E - consumer - E - the eE extends Exceptionpublic <E extends Exception> void accept(Throwables.Consumer<? super TP,E> action) throws E extends Exception
E - action - E - the eE extends Exceptionpublic <U,E extends Exception> U map(Throwables.Function<? super TP,U,E> mapper) throws E extends Exception
U - E - mapper - E - the eE extends Exceptionpublic <E extends Exception> u.Optional<TP> filter(Throwables.Predicate<? super TP,E> predicate) throws E extends Exception
E - predicate - E - the eE extends Exceptionpublic u.Optional<TP> toOptional()
public static <T1> Tuple.Tuple1<T1> of(T1 _1)
T1 - _1 the 1public static <T1,T2> Tuple.Tuple2<T1,T2> of(T1 _1, T2 _2)
T1 - T2 - _1 the 1
_2 the 2public static <T1,T2,T3> Tuple.Tuple3<T1,T2,T3> of(T1 _1, T2 _2, T3 _3)
T1 - T2 - T3 - _1 the 1
_2 the 2
_3 the 3public static <T1,T2,T3,T4> Tuple.Tuple4<T1,T2,T3,T4> of(T1 _1, T2 _2, T3 _3, T4 _4)
T1 - T2 - T3 - T4 - _1 the 1
_2 the 2
_3 the 3
_4 the 4public static <T1,T2,T3,T4,T5> Tuple.Tuple5<T1,T2,T3,T4,T5> of(T1 _1, T2 _2, T3 _3, T4 _4, T5 _5)
T1 - T2 - T3 - T4 - T5 - _1 the 1
_2 the 2
_3 the 3
_4 the 4
_5 the 5public static <T1,T2,T3,T4,T5,T6> Tuple.Tuple6<T1,T2,T3,T4,T5,T6> of(T1 _1, T2 _2, T3 _3, T4 _4, T5 _5, T6 _6)
T1 - T2 - T3 - T4 - T5 - T6 - _1 the 1
_2 the 2
_3 the 3
_4 the 4
_5 the 5
_6 the 6public static <T1,T2,T3,T4,T5,T6,T7> Tuple.Tuple7<T1,T2,T3,T4,T5,T6,T7> of(T1 _1, T2 _2, T3 _3, T4 _4, T5 _5, T6 _6, T7 _7)
T1 - T2 - T3 - T4 - T5 - T6 - T7 - _1 the 1
_2 the 2
_3 the 3
_4 the 4
_5 the 5
_6 the 6
_7 the 7@Deprecated public static <T1,T2,T3,T4,T5,T6,T7,T8> Tuple.Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> of(T1 _1, T2 _2, T3 _3, T4 _4, T5 _5, T6 _6, T7 _7, T8 _8)
class SomeClass { final T1 propName1, final T2 propName2...}T1 - T2 - T3 - T4 - T5 - T6 - T7 - T8 - _1 the 1
_2 the 2
_3 the 3
_4 the 4
_5 the 5
_6 the 6
_7 the 7
_8 the 8@Deprecated public static <T1,T2,T3,T4,T5,T6,T7,T8,T9> Tuple.Tuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9> of(T1 _1, T2 _2, T3 _3, T4 _4, T5 _5, T6 _6, T7 _7, T8 _8, T9 _9)
class SomeClass { final T1 propName1, final T2 propName2...}T1 - T2 - T3 - T4 - T5 - T6 - T7 - T8 - T9 - _1 the 1
_2 the 2
_3 the 3
_4 the 4
_5 the 5
_6 the 6
_7 the 7
_8 the 8
_9 the 9@Beta public static <K,V> Tuple.Tuple2<K,V> from(Map.Entry<K,V> entry)
K - the key typeV - the value typeentry - @Beta public static <TP extends Tuple<TP>> TP from(Object[] a)
T - a - @Beta public static <TP extends Tuple<TP>> TP from(Collection<?> c)
T - c - @Beta public static <T> List<T> toList(Tuple.Tuple1<? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple2<? extends T,? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple3<? extends T,? extends T,? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple4<? extends T,? extends T,? extends T,? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple5<? extends T,? extends T,? extends T,? extends T,? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple6<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple7<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple8<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp)
@Beta public static <T> List<T> toList(Tuple.Tuple9<? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T,? extends T> tp)
@Beta public static <T1,T2,T3> Tuple.Tuple3<T1,T2,T3> flatten(Tuple.Tuple2<Tuple.Tuple2<T1,T2>,T3> tp)
@Beta public static <T1,T2,T3,T4,T5> Tuple.Tuple5<T1,T2,T3,T4,T5> flatten(Tuple.Tuple3<Tuple.Tuple3<T1,T2,T3>,T4,T5> tp)
Copyright © 2021. All rights reserved.