public final class Tuple0 extends Object implements Tuple, Comparable<Tuple0>, Serializable
Modifier and Type | Method and Description |
---|---|
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() |
<U> U |
transform(java.util.function.Supplier<? extends U> f)
Transforms this tuple to an object of type U.
|
public static Tuple0 instance()
public static Comparator<Tuple0> comparator()
public int arity()
Tuple
public int compareTo(Tuple0 that)
compareTo
in interface Comparable<Tuple0>
public <U> U transform(java.util.function.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()
Tuple
Copyright © 2016. All Rights Reserved.