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 Constructor Description SystemPropertyComparator(boolean ascending)
Standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object o1, Object o2)
Compares two objects.boolean
equals(Object o)
Returnstrue
if this object is equal to the specified object, andfalse
otherwise.int
hashCode()
Returns a hash code value for the object.
-
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
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
public boolean equals(Object o)
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.
-
-