Module com.aoapps.dao.api
Package com.aoapps.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
Modifier and TypeMethodDescriptionint
The default ordering is based on column value comparisons.boolean
The equals is based on equal column values.Comparable<?>[]
Gets an array of all column values.int
hashCode()
The hashCode is based on the column values.toString()
Based on the column values (column1,column2,...)
-
Method Details
-
getColumns
Comparable<?>[] getColumns()Gets an array of all column values. -
toString
String toString()Based on the column values (column1,column2,...) -
equals
The equals is based on equal column values. -
hashCode
int hashCode()The hashCode is based on the column values. -
compareTo
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.
-