java.lang.Object
javax.swing.RowSorter.SortKey
public static class RowSorter.SortKey extends Object
SortKey describes the sort order for a particular column.  The
 column index is in terms of the underlying model, which may differ
 from that of the view.
- Since:
- 1.6
- 
Constructor Details- 
SortKeyCreates aSortKeyfor the specified column with the specified sort order.- Parameters:
- column- index of the column, in terms of the model
- sortOrder- the sorter order
- Throws:
- IllegalArgumentException- if- sortOrderis- null
 
 
- 
- 
Method Details- 
getColumnpublic final int getColumn()Returns the index of the column.- Returns:
- index of column
 
- 
getSortOrderReturns the sort order of the column.- Returns:
- the sort order of the column
 
- 
hashCodepublic int hashCode()Returns the hash code for thisSortKey.- Overrides:
- hashCodein class- Object
- Returns:
- hash code
- See Also:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
- 
equalsReturns true if this object equals the specified object. If the specified object is aSortKeyand references the same column and sort order, the two objects are equal.- Overrides:
- equalsin class- Object
- Parameters:
- o- the object to compare to
- Returns:
- true if ois equal to thisSortKey
- See Also:
- Object.hashCode(),- HashMap
 
 
-