- java.lang.Object
- 
- javax.swing.RowSorter.SortKey
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Returns true if this object equals the specified object.intgetColumn()Returns the index of the column.SortOrdergetSortOrder()Returns the sort order of the column.inthashCode()Returns the hash code for thisSortKey.
 
- 
- 
- 
Constructor Detail- 
SortKeypublic SortKey(int column, SortOrder sortOrder)Creates 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 Detail- 
getColumnpublic final int getColumn() Returns the index of the column.- Returns:
- index of column
 
 - 
getSortOrderpublic final SortOrder getSortOrder() Returns 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)
 
 - 
equalspublic boolean equals(Object o) Returns 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
 
 
- 
 
-