Package com.gengoai.tuple
Class Tuple0
- java.lang.Object
-
- com.gengoai.tuple.Tuple
-
- com.gengoai.tuple.Tuple0
-
- All Implemented Interfaces:
Copyable<Tuple>
,Serializable
,Comparable<Tuple>
,Iterable<Object>
public final class Tuple0 extends Tuple
A tuple of order 0, i.e. empty- Author:
- David B. Bracewell
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object[]
array()
The tuple as an array of objectsTuple0
copy()
Makes a copy of this object.int
degree()
The number of items in the tupleint
hashCode()
Tuple
mapValues(@NonNull Function<Object,?> function)
Maps the values of the tuple to another data typeprotected Object
readResolve()
String
toString()
-
Methods inherited from class com.gengoai.tuple.Tuple
appendLeft, appendRight, compareTo, equals, get, iterator, map, shiftLeft, shiftRight, slice, stream
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Field Detail
-
INSTANCE
public static Tuple0 INSTANCE
The constant INSTANCE.
-
-
Method Detail
-
copy
public Tuple0 copy()
Description copied from interface:Copyable
Makes a copy of this object.
- Returns:
- A copy of this object.
-
degree
public int degree()
Description copied from class:Tuple
The number of items in the tuple
-
mapValues
public Tuple mapValues(@NonNull @NonNull Function<Object,?> function)
Description copied from class:Tuple
Maps the values of the tuple to another data type
-
readResolve
protected Object readResolve() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-