Package org.fluentlenium.core.events
Class ListenerPriorityComparator
- java.lang.Object
-
- org.fluentlenium.core.events.ListenerPriorityComparator
-
- All Implemented Interfaces:
Comparator<Object>
public class ListenerPriorityComparator extends Object implements Comparator<Object>
Compare listeners implementingListenerPriority
.
-
-
Constructor Summary
Constructors Constructor Description ListenerPriorityComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Object o1, Object o2)
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
-
-
-
-
Method Detail
-
compare
public int compare(Object o1, Object o2)
- Specified by:
compare
in interfaceComparator<Object>
-
getPriority
protected int getPriority(Object obj)
Get the priority of the object.- Parameters:
obj
- object to get the priority of- Returns:
- priority value if the argument implements
ListenerPriority
, otherwise 0
-
-