public final class Tuple
extends java.lang.Object
Constructor and Description |
---|
Tuple(T... values)
Creates a tuple of the given values
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObject) |
<T> T |
get(int index)
Returns the value in the given index
|
int |
hashCode() |
int |
size()
Returns the size of the tuple
|
java.lang.String |
toString() |
@SafeVarargs public Tuple(@Nullable T... values)
values
- The values to put in the tuple@NotNull public <T> T get(int index)
index
- The index to get the value atpublic int size()
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object