Package io.fluentlenium.core.events
Class ListenerPriorityComparator
java.lang.Object
io.fluentlenium.core.events.ListenerPriorityComparator
- All Implemented Interfaces:
Comparator<Object>
Compare listeners implementing
ListenerPriority
.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
protected int
getPriority
(Object obj) Get the priority of the object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ListenerPriorityComparator
public ListenerPriorityComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Object>
-
getPriority
Get the priority of the object.- Parameters:
obj
- object to get the priority of- Returns:
- priority value if the argument implements
ListenerPriority
, otherwise 0
-