Package org.jfree.ui.about
Class SystemPropertiesTableModel.SystemPropertyComparator
java.lang.Object
org.jfree.ui.about.SystemPropertiesTableModel.SystemPropertyComparator
- All Implemented Interfaces:
Comparator
- Enclosing class:
- SystemPropertiesTableModel
protected static class SystemPropertiesTableModel.SystemPropertyComparator
extends Object
implements Comparator
A class for comparing SystemProperty objects.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
ascending
private boolean ascendingIndicates the sort order.
-
-
Constructor Details
-
SystemPropertyComparator
public SystemPropertyComparator(boolean ascending) Standard constructor.- Parameters:
ascending
- a flag that controls the sort order (ascending or descending).
-
-
Method Details
-
compare
Compares two objects.- Specified by:
compare
in interfaceComparator
- Parameters:
o1
- the first object.o2
- the second object.- Returns:
- an integer that indicates the relative order of the objects.
-
equals
Returnstrue
if this object is equal to the specified object, andfalse
otherwise.- Specified by:
equals
in interfaceComparator
- Overrides:
equals
in classObject
- Parameters:
o
- the other object.- Returns:
- A boolean.
-
hashCode
public int hashCode()Returns a hash code value for the object.
-