Constructor and Description |
---|
RowSorter.SortKey(int column,
SortOrder sortOrder)
Creates a
SortKey for the specified column with
the specified sort order. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
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 RowSorter.SortKey(int column, SortOrder sortOrder)
SortKey
for the specified column with
the specified sort order.column
- index of the column, in terms of the modelsortOrder
- the sorter orderIllegalArgumentException
- if sortOrder
is
null
public final int getColumn()
public final SortOrder getSortOrder()
public int hashCode()
SortKey
.hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public boolean equals(Object o)
SortKey
and
references the same column and sort order, the two objects
are equal.equals
in class Object
o
- the object to compare too
is equal to this SortKey
Object.hashCode()
,
HashMap
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2012, Oracle and/or its affiliates. All rights reserved.