| Constructor and Description |
|---|
SortKey(int column, SortOrder
Creates a
SortKey for the specified column with the specified sort order.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object
Returns true if this object equals the specified object.
|
int |
getColumn()
Returns the index of the column.
|
SortOrder |
getSortOrder()
Returns the sort order of the column.
|
int |
hashCode()
Returns the hash code for this
SortKey.
|
public SortKey(int column,
SortOrder sortOrder)
SortKey for the specified column with the specified sort order.
column - index of the column, in terms of the model
sortOrder - the sorter order
IllegalArgumentException - if
sortOrder is
null
public final int getColumn()
public final SortOrdergetSortOrder()
public int hashCode()
SortKey.
hashCode in class
Object
Object.equals(java.lang.Object) ,
System.identityHashCode(java.lang.Object)
public boolean equals(Objecto)
SortKey and references the same column and sort order, the two objects are equal.
equals in class
Object
o - the object to compare to
o is equal to this
SortKey
Object.hashCode() ,
HashMap