protected static class SystemPropertiesTableModel.SystemPropertyComparator extends java.lang.Object implements java.util.Comparator
Constructor and Description |
---|
SystemPropertiesTableModel.SystemPropertyComparator(boolean ascending)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares two objects.
|
boolean |
equals(java.lang.Object o)
Returns
true if this object is equal to the specified
object, and false otherwise. |
int |
hashCode()
Returns a hash code value for the object.
|
public SystemPropertiesTableModel.SystemPropertyComparator(boolean ascending)
ascending
- a flag that controls the sort order (ascending or
descending).public int compare(java.lang.Object o1, java.lang.Object o2)
compare
in interface java.util.Comparator
o1
- the first object.o2
- the second object.public boolean equals(java.lang.Object o)
true
if this object is equal to the specified
object, and false
otherwise.equals
in interface java.util.Comparator
equals
in class java.lang.Object
o
- the other object.public int hashCode()
hashCode
in class java.lang.Object