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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected intgetPriority(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, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
ListenerPriorityComparator
public ListenerPriorityComparator()
-
-
Method Details
-
compare
- Specified by:
comparein 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
-