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.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
SystemPropertyComparator
Standard constructor.- Parameters:
ascending- a flag that controls the sort order (ascending or descending).
-
-
Method Details
-
compare
Compares two objects.- Specified by:
comparein interfaceComparator- Parameters:
o1- the first object.o2- the second object.- Returns:
- an integer that indicates the relative order of the objects.
-
equals
Returnstrueif this object is equal to the specified object, andfalseotherwise.- Specified by:
equalsin interfaceComparator- Overrides:
equalsin classObject- Parameters:
o- the other object.- Returns:
- A boolean.
-
hashCode
Returns a hash code value for the object.
-