org.jfree.ui.about
Class SystemPropertiesTableModel.SystemPropertyComparator
java.lang.Object
org.jfree.ui.about.SystemPropertiesTableModel.SystemPropertyComparator
- SystemPropertiesTableModel
- Comparator
extends java.lang.Object
implements Comparator
A class for comparing SystemProperty objects.
int | compare(Object o1, Object o2) - Compares two objects.
|
boolean | equals(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.
|
SystemPropertyComparator
public SystemPropertyComparator(boolean ascending)
Standard constructor.
ascending
- a flag that controls the sort order (ascending or
descending).
compare
public int compare(Object o1,
Object o2)
Compares two objects.
o1
- the first object.o2
- the second object.
- an integer that indicates the relative order of the objects.
equals
public boolean equals(Object o)
Returns true
if this object is equal to the specified
object, and false
otherwise.
hashCode
public int hashCode()
Returns a hash code value for the object.