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()
Get an array representation of this tuple.
|
Tuple4<T1,T2,T3,T4> |
clone() |
int |
compareTo(Tuple4<T1,T2,T3,T4> other) |
int |
degree()
The degree of this tuple: 4.
|
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<Object> |
iterator() |
List<?> |
list()
Get a list representation of this tuple.
|
<R> R |
map(Function4<T1,T2,T3,T4,R> function)
Apply this tuple as arguments to a function.
|
<U1> Tuple4<U1,T2,T3,T4> |
map1(Function1<T1,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(Function1<T2,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(Function1<T3,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(Function1<T4,U4> function)
Apply attribute 4 as argument to a function and return a new tuple with the substituted argument.
|
String |
toString() |
T1 |
v1() |
T2 |
v2() |
T3 |
v3() |
T4 |
v4() |
finalize, getClass, notify, notifyAll, wait, wait, waitrange, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tupleforEach, spliteratorpublic 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 <R> R map(Function4<T1,T2,T3,T4,R> function)
public final <U1> Tuple4<U1,T2,T3,T4> map1(Function1<T1,U1> function)
public final <U2> Tuple4<T1,U2,T3,T4> map2(Function1<T2,U2> function)
public final <U3> Tuple4<T1,T2,U3,T4> map3(Function1<T3,U3> function)
public final <U4> Tuple4<T1,T2,T3,U4> map4(Function1<T4,U4> function)
public final Object[] array()
Tuplepublic final List<?> list()
Tuplepublic final int degree()
Copyright © 2014. All Rights Reserved.