EventListenerComparator

Compares two event listeners to determine the order in which they should be invoked when an event is dispatched. The lower the order, the sooner it will be invoked (the higher its precedence). The higher the order, the later it will be invoked (the lower its precedence). <p/> TypedEventListeners have a higher precedence (i.e. a lower order) than standard EventListener instances. Standard EventListener instances have the same order priority. <p/> When both objects being compared are TypedEventListeners, they are ordered according to the rules of the {@link EventClassComparator}, using the TypedEventListeners' {@link TypedEventListener#getEventType() eventType}.

@since 1.3

class EventListenerComparator : Comparator!EventListener {}

Members

Functions

compare
int compare(EventListener a, EventListener b)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta