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.| Modifier | Constructor and Description |
|---|---|
protected |
PrioritizedObjectComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object o1,
Object o2) |
static PrioritizedObjectComparator |
getInstance()
Gets an instance of
PrioritizedObjectComparator. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic static PrioritizedObjectComparator getInstance()
PrioritizedObjectComparator.PrioritizedObjectComparator.public int compare(Object o1, Object o2)
compare in interface Comparator<Object>Copyright © 2017. All rights reserved.