public class EventListenerOrderComparator extends Object implements Comparator<EventListener>
OrderResolver instance to define the expected order of two
candidates. When two values have identical order, but the instances are not equal, this Comparator will use the
classes hashCode or their Identity HashCode (see System.identityHashCode(Object)) to order the instances.| Constructor and Description |
|---|
EventListenerOrderComparator(OrderResolver orderResolver)
Creates a comparator using given
orderResolver to resolve the "order" value. |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(EventListener o1,
EventListener o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalspublic EventListenerOrderComparator(OrderResolver orderResolver)
orderResolver to resolve the "order" value.orderResolver - resolver that provides the "order" value of a given EventListenerpublic int compare(EventListener o1, EventListener o2)
compare in interface Comparator<EventListener>Copyright © 2010-2014. All Rights Reserved.