Package com.aoindustries.dao
Interface Tuple<T extends Tuple<T> & Comparable<? super 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcompareTo(T o)The default ordering is based on column value comparisons.booleanequals(Object obj)The equals is based on equal column values.Comparable<?>[]getColumns()Gets an array of all column values.inthashCode()The hashCode is based on the column values.StringtoString()Based on the column values (column1,column2,...)
-
-
-
Method Detail
-
getColumns
Comparable<?>[] getColumns()
Gets an array of all column values.
-
toString
String toString()
Based on the column values (column1,column2,...)
-
equals
boolean equals(Object obj)
The equals is based on equal column values.
-
hashCode
int hashCode()
The hashCode is based on the column values.
-
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.
-
-