public class Tuple4<T1,T2,T3,T4> extends Object implements Tuple, Comparable<Tuple4<T1,T2,T3,T4>>, Serializable, Cloneable
Constructor and Description |
---|
Tuple4(T1 v1,
T2 v2,
T3 v3,
T4 v4) |
Tuple4(Tuple4<T1,T2,T3,T4> tuple) |
Modifier and Type | Method and Description |
---|---|
Object[] |
array()
Deprecated.
|
Tuple4<T1,T2,T3,T4> |
clone() |
int |
compareTo(Tuple4<T1,T2,T3,T4> other) |
<T5> Tuple5<T1,T2,T3,T4,T5> |
concat(T5 value)
Concatenate a value to this tuple.
|
<T5> Tuple5<T1,T2,T3,T4,T5> |
concat(Tuple1<T5> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> |
concat(Tuple10<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> |
concat(Tuple11<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> |
concat(Tuple12<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6> Tuple6<T1,T2,T3,T4,T5,T6> |
concat(Tuple2<T5,T6> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7> Tuple7<T1,T2,T3,T4,T5,T6,T7> |
concat(Tuple3<T5,T6,T7> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8> |
concat(Tuple4<T5,T6,T7,T8> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9> |
concat(Tuple5<T5,T6,T7,T8,T9> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9,T10> |
concat(Tuple6<T5,T6,T7,T8,T9,T10> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9,T10,T11> |
concat(Tuple7<T5,T6,T7,T8,T9,T10,T11> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9,T10,T11,T12> |
concat(Tuple8<T5,T6,T7,T8,T9,T10,T11,T12> tuple)
Concatenate a tuple to this tuple.
|
<T5,T6,T7,T8,T9,T10,T11,T12,T13> |
concat(Tuple9<T5,T6,T7,T8,T9,T10,T11,T12,T13> tuple)
Concatenate a tuple to this tuple.
|
int |
degree()
The degree of this tuple: 4.
|
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<Object> |
iterator() |
Tuple0 |
limit0()
Limit this tuple to degree 0.
|
Tuple1<T1> |
limit1()
Limit this tuple to degree 1.
|
Tuple2<T1,T2> |
limit2()
Limit this tuple to degree 2.
|
Tuple3<T1,T2,T3> |
limit3()
Limit this tuple to degree 3.
|
Tuple4<T1,T2,T3,T4> |
limit4()
Limit this tuple to degree 4.
|
List<?> |
list()
Deprecated.
|
<R> R |
map(Function4<? super T1,? super T2,? super T3,? super T4,? extends R> function)
Apply this tuple as arguments to a function.
|
<U1> Tuple4<U1,T2,T3,T4> |
map1(java.util.function.Function<? super T1,? extends U1> function)
Apply attribute 1 as argument to a function and return a new tuple with the substituted argument.
|
<U2> Tuple4<T1,U2,T3,T4> |
map2(java.util.function.Function<? super T2,? extends U2> function)
Apply attribute 2 as argument to a function and return a new tuple with the substituted argument.
|
<U3> Tuple4<T1,T2,U3,T4> |
map3(java.util.function.Function<? super T3,? extends U3> function)
Apply attribute 3 as argument to a function and return a new tuple with the substituted argument.
|
<U4> Tuple4<T1,T2,T3,U4> |
map4(java.util.function.Function<? super T4,? extends U4> function)
Apply attribute 4 as argument to a function and return a new tuple with the substituted argument.
|
Tuple4<T1,T2,T3,T4> |
skip0()
Skip 0 degrees from this tuple.
|
Tuple3<T2,T3,T4> |
skip1()
Skip 1 degrees from this tuple.
|
Tuple2<T3,T4> |
skip2()
Skip 2 degrees from this tuple.
|
Tuple1<T4> |
skip3()
Skip 3 degrees from this tuple.
|
Tuple0 |
skip4()
Skip 4 degrees from this tuple.
|
Tuple2<Tuple0,Tuple4<T1,T2,T3,T4>> |
split0()
Split this tuple into two tuples of degree 0 and 4.
|
Tuple2<Tuple1<T1>,Tuple3<T2,T3,T4>> |
split1()
Split this tuple into two tuples of degree 1 and 3.
|
Tuple2<Tuple2<T1,T2>,Tuple2<T3,T4>> |
split2()
Split this tuple into two tuples of degree 2 and 2.
|
Tuple2<Tuple3<T1,T2,T3>,Tuple1<T4>> |
split3()
Split this tuple into two tuples of degree 3 and 1.
|
Tuple2<Tuple4<T1,T2,T3,T4>,Tuple0> |
split4()
Split this tuple into two tuples of degree 4 and 0.
|
Object[] |
toArray()
Get an array representation of this tuple.
|
List<?> |
toList()
Get a list representation of this tuple.
|
Map<String,?> |
toMap()
Get a map representation of this tuple.
|
<K> Map<K,?> |
toMap(java.util.function.Function<? super Integer,? extends K> keyMapper)
Get a map representation of this tuple.
|
<K> Map<K,?> |
toMap(K key1,
K key2,
K key3,
K key4) |
<K> Map<K,?> |
toMap(java.util.function.Supplier<? extends K> keySupplier1,
java.util.function.Supplier<? extends K> keySupplier2,
java.util.function.Supplier<? extends K> keySupplier3,
java.util.function.Supplier<? extends K> keySupplier4) |
Seq<?> |
toSeq()
Get a Seq representation of this tuple.
|
String |
toString() |
T1 |
v1() |
T2 |
v2() |
T3 |
v3() |
T4 |
v4() |
finalize, getClass, notify, notifyAll, wait, wait, wait
collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, collectors, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, consumer, function, function, function, function, function, function, function, function, function, function, function, function, function, function, function, function, function, range, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tuple
forEach, spliterator
public final T1 v1
public final T2 v2
public final T3 v3
public final T4 v4
public T1 v1()
public T2 v2()
public T3 v3()
public T4 v4()
public final <T5> Tuple5<T1,T2,T3,T4,T5> concat(Tuple1<T5> tuple)
public final <T5,T6> Tuple6<T1,T2,T3,T4,T5,T6> concat(Tuple2<T5,T6> tuple)
public final <T5,T6,T7> Tuple7<T1,T2,T3,T4,T5,T6,T7> concat(Tuple3<T5,T6,T7> tuple)
public final <T5,T6,T7,T8> Tuple8<T1,T2,T3,T4,T5,T6,T7,T8> concat(Tuple4<T5,T6,T7,T8> tuple)
public final <T5,T6,T7,T8,T9> Tuple9<T1,T2,T3,T4,T5,T6,T7,T8,T9> concat(Tuple5<T5,T6,T7,T8,T9> tuple)
public final <T5,T6,T7,T8,T9,T10> Tuple10<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> concat(Tuple6<T5,T6,T7,T8,T9,T10> tuple)
public final <T5,T6,T7,T8,T9,T10,T11> Tuple11<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11> concat(Tuple7<T5,T6,T7,T8,T9,T10,T11> tuple)
public final <T5,T6,T7,T8,T9,T10,T11,T12> Tuple12<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12> concat(Tuple8<T5,T6,T7,T8,T9,T10,T11,T12> tuple)
public final <T5,T6,T7,T8,T9,T10,T11,T12,T13> Tuple13<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13> concat(Tuple9<T5,T6,T7,T8,T9,T10,T11,T12,T13> tuple)
public final <T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> Tuple14<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> concat(Tuple10<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14> tuple)
public final <T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> Tuple15<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> concat(Tuple11<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15> tuple)
public final <T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> Tuple16<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> concat(Tuple12<T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16> tuple)
public final Tuple2<Tuple0,Tuple4<T1,T2,T3,T4>> split0()
public final Tuple2<Tuple1<T1>,Tuple3<T2,T3,T4>> split1()
public final Tuple2<Tuple2<T1,T2>,Tuple2<T3,T4>> split2()
public final Tuple2<Tuple3<T1,T2,T3>,Tuple1<T4>> split3()
public final Tuple2<Tuple4<T1,T2,T3,T4>,Tuple0> split4()
public final Tuple0 limit0()
public final Tuple0 skip4()
public final <R> R map(Function4<? super T1,? super T2,? super T3,? super T4,? extends R> function)
public final <U1> Tuple4<U1,T2,T3,T4> map1(java.util.function.Function<? super T1,? extends U1> function)
public final <U2> Tuple4<T1,U2,T3,T4> map2(java.util.function.Function<? super T2,? extends U2> function)
public final <U3> Tuple4<T1,T2,U3,T4> map3(java.util.function.Function<? super T3,? extends U3> function)
public final <U4> Tuple4<T1,T2,T3,U4> map4(java.util.function.Function<? super T4,? extends U4> function)
@Deprecated public final Object[] array()
Tuple
public final Object[] toArray()
Tuple
@Deprecated public final List<?> list()
Tuple
public final List<?> toList()
Tuple
public final Seq<?> toSeq()
Tuple
public final Map<String,?> toMap()
Tuple
public final <K> Map<K,?> toMap(java.util.function.Function<? super Integer,? extends K> keyMapper)
Tuple
public final <K> Map<K,?> toMap(java.util.function.Supplier<? extends K> keySupplier1, java.util.function.Supplier<? extends K> keySupplier2, java.util.function.Supplier<? extends K> keySupplier3, java.util.function.Supplier<? extends K> keySupplier4)
public final <K> Map<K,?> toMap(K key1, K key2, K key3, K key4)
public final int degree()
Copyright © 2016. All Rights Reserved.