public class Tuple1<T1> extends Object implements Tuple, Comparable<Tuple1<T1>>, Serializable, Cloneable
| Modifier and Type | Method and Description |
|---|---|
Object[] |
array()
Get an array representation of this tuple.
|
Tuple1<T1> |
clone() |
int |
compareTo(Tuple1<T1> other) |
int |
degree()
The degree of this tuple: 1.
|
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<Object> |
iterator() |
List<?> |
list()
Get a list representation of this tuple.
|
<R> R |
map(Function1<T1,R> function)
Apply this tuple as arguments to a function.
|
<U1> Tuple1<U1> |
map1(Function1<T1,U1> function)
Apply attribute 1 as argument to a function and return a new tuple with the substituted argument.
|
String |
toString() |
T1 |
v1() |
finalize, getClass, notify, notifyAll, wait, wait, waitrange, tuple, tuple, tuple, tuple, tuple, tuple, tuple, tupleforEach, spliteratorpublic final T1 v1
public T1 v1()
public final <U1> Tuple1<U1> map1(Function1<T1,U1> function)
public final Object[] array()
Tuplepublic final List<?> list()
Tuplepublic final int degree()
public int compareTo(Tuple1<T1> other)
compareTo in interface Comparable<Tuple1<T1>>Copyright © 2014. All Rights Reserved.