public final class Tuple0 extends Object implements Tuple, Comparable<Tuple0>, Serializable
| Modifier and Type | Method and Description |
|---|---|
<U> U |
apply(Supplier<? extends U> f)
Transforms this tuple to an object of type U.
|
int |
arity()
Returns the number of elements of this tuple.
|
static Comparator<Tuple0> |
comparator() |
int |
compareTo(Tuple0 that) |
boolean |
equals(Object o) |
int |
hashCode() |
static Tuple0 |
instance()
Returns the singleton instance of Tuple0.
|
Seq<?> |
toSeq()
Converts this tuple to a sequence.
|
String |
toString() |
public static Tuple0 instance()
public static Comparator<Tuple0> comparator()
public int arity()
Tuplepublic int compareTo(Tuple0 that)
compareTo in interface Comparable<Tuple0>public <U> U apply(Supplier<? extends U> f)
U - type of the transformation resultf - Transformation which creates a new object of type U based on this tuple's contents.NullPointerException - if f is nullpublic Seq<?> toSeq()
TupleCopyright © 2017. All Rights Reserved.