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) |
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...} |
Stream<TP> |
stream() |
<T,E extends Exception> |
stream(Throwables.Function<? super TP,Stream<T>,E> func) |
abstract Object[] |
toArray() |
abstract <A> A[] |
toArray(A[] a) |
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 Exception
public <E extends Exception> void accept(Throwables.Consumer<? super TP,E> action) throws E extends Exception
E
- action
- E
- the eE extends Exception
public <U,E extends Exception> U map(Throwables.Function<? super TP,U,E> mapper) throws E extends Exception
U
- E
- mapper
- E
- the eE extends Exception
public <E extends Exception> u.Optional<TP> filter(Throwables.Predicate<? super TP,E> predicate) throws E extends Exception
E
- predicate
- E
- the eE extends Exception
public <T,E extends Exception> Stream<T> stream(Throwables.Function<? super TP,Stream<T>,E> func) throws E extends Exception
E extends Exception
public 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 9public static <K,V> Tuple.Tuple2<K,V> from(Map.Entry<K,V> entry)
K
- the key typeV
- the value typeentry
- public static <TP extends Tuple<TP>> TP from(Object[] a)
T
- a
- public static <TP extends Tuple<TP>> TP from(Collection<?> c)
T
- c
- public static <T1,T2,T3> Tuple.Tuple3<T1,T2,T3> flatten(Tuple.Tuple2<Tuple.Tuple2<T1,T2>,T3> tp)
Copyright © 2020. All rights reserved.