Class PathComparator

  • All Implemented Interfaces:

    public class PathComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.String>
    Comparator for path elements.
    • Constructor Summary

      Constructor Description
      PathComparator​(char aDelimiter)
      Constructs the PathComparator with the given path delimiter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.String o1, java.lang.String o2)  
      • Methods inherited from interface java.util.Comparator

        comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PathComparator

        public PathComparator​(char aDelimiter)
        Constructs the PathComparator with the given path delimiter.
        aDelimiter - The path delimiter to use.
    • Method Detail

      • compare

        public int compare​(java.lang.String o1,
                           java.lang.String o2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.String>