@Public public class Tuple0 extends Tuple
The Tuple0 is a soft singleton, i.e., there is a "singleton" instance, but it does not prevent creation of additional instances.
Tuple
,
Serialized FormConstructor and Description |
---|
Tuple0() |
Modifier and Type | Method and Description |
---|---|
Tuple0 |
copy()
Shallow tuple copy.
|
boolean |
equals(Object o)
Deep equality for tuples by calling equals() on the tuple members.
|
int |
getArity()
Gets the number of field in the tuple (the tuple arity).
|
<T> T |
getField(int pos)
Gets the field at the specified position.
|
int |
hashCode() |
<T> void |
setField(T value,
int pos)
Sets the field at the specified position.
|
String |
toString()
Creates a string representation of the tuple in the form "()".
|
getFieldNotNull, getTupleClass, newInstance
public static final Tuple0 INSTANCE
public int getArity()
Tuple
public <T> T getField(int pos)
Tuple
public <T> void setField(T value, int pos)
Tuple
public Tuple0 copy()
public String toString()
public boolean equals(Object o)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.