Class ListenerPriorityComparator

java.lang.Object
io.fluentlenium.core.events.ListenerPriorityComparator
All Implemented Interfaces:
Comparator<Object>

public class ListenerPriorityComparator extends Object implements Comparator<Object>
Compare listeners implementing ListenerPriority.
  • Constructor Details

    • ListenerPriorityComparator

      public ListenerPriorityComparator()
  • Method Details

    • compare

      public int compare (Object o1, Object o2)
      Specified by:
      compare in interface Comparator<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