com.jidesoft.comparator
Class PrioritizedObjectComparator
java.lang.Object
com.jidesoft.comparator.PrioritizedObjectComparator
- All Implemented Interfaces:
- Comparator<Object>
public class PrioritizedObjectComparator
- extends Object
- implements Comparator<Object>
Comparator
for objects that implements Prioritized
interface. It is a singleton pattern. You use getInstance()
to get an instance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrioritizedObjectComparator
protected PrioritizedObjectComparator()
getInstance
public static PrioritizedObjectComparator getInstance()
- Gets an instance of
PrioritizedObjectComparator
.
- Returns:
- an instance Cof
PrioritizedObjectComparator
.
compare
public int compare(Object o1,
Object o2)
- Specified by:
compare
in interface Comparator<Object>