Tuple

public interface Tuple implements Comparable<T>

Tuple are immutable objects. Tuples should contain only immutable objects or objects that won't be modified while part of a tuple.

See also

<a href="https://stackoverflow.com/questions/3642452/java-n-tuple-implementation/3642623#3642623">

Java N-tuple Implementation | Stack Overflow

Functions

Link copied to clipboard
public abstract int compareTo(T p)
Link copied to clipboard
public abstract T getIthValue<T>(int i)
Link copied to clipboard
public abstract TupleType getType()
Link copied to clipboard
public static Tuple of(TupleType type, Array<Comparable<? extends Object>> values)
Generates a tuple given a type and an array of values
Link copied to clipboard
public abstract int size()