Interface Tuple<T extends Tuple<T> & Comparable<? super T>>

  • All Known Subinterfaces:
    Tuple2<C1,​C2,​T>, Tuple3<C1,​C2,​C3,​T>, TupleN<C,​T>

    public interface Tuple<T extends Tuple<T> & Comparable<? super T>>
    Allows sets of columns to be used as multi-column keys.
    Author:
    AO Industries, Inc.
    • Method Detail

      • getColumns

        Comparable<?>[] getColumns()
        Gets an array of all column values.
      • toString

        String toString()
        Based on the column values (column1,column2,...)
        Overrides:
        toString in class Object
      • equals

        boolean equals​(Object obj)
        The equals is based on equal column values.
        Overrides:
        equals in class Object
      • hashCode

        int hashCode()
        The hashCode is based on the column values.
        Overrides:
        hashCode in class Object
      • compareTo

        int compareTo​(T o)
        The default ordering is based on column value comparisons. If both values are Strings, will use the model comparator. If one tuple has few columns than the other, and all the values are equal, the tuple with fewer columns is considered to be first.