Class PositionedElementsComparator

  • All Implemented Interfaces:
    java.util.Comparator<AbstractPositioned>

    public class PositionedElementsComparator
    extends java.lang.Object
    implements java.util.Comparator<AbstractPositioned>
    Compares AbstractPositioned objects based on AbstractPositioned#getPosition field. Null position is considered as greater than not null position.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(AbstractPositioned o1, AbstractPositioned o2)  
      • 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