Class PathComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<Path>

    public class PathComparator
    extends java.lang.Object
    implements java.util.Comparator<Path>, java.io.Serializable
    Implements a comparator, which sorts paths according to 1) their depth (highest first) and 2) the paths natural ordering.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Comparator<Path> INSTANCE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Path p1, Path p2)  
      • 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
    • Field Detail

      • INSTANCE

        public static final java.util.Comparator<Path> INSTANCE
    • Method Detail

      • compare

        public int compare​(Path p1,
                           Path p2)
        Specified by:
        compare in interface java.util.Comparator<Path>