com.ibm.wsspi.kernel.service.utils

Class PathUtils.PathComparator

  • java.lang.Object
    • com.ibm.wsspi.kernel.service.utils.PathUtils.PathComparator
  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<java.lang.String>
    Enclosing class:
    PathUtils


    public static class PathUtils.PathComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.String>, java.io.Serializable
    A Path Comparator that will sort paths in order.

    Carefully constructed to allow its use with NavigableMaps to return descendant paths when used with subMap.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static char PATH_SEPARATOR 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      int compare(java.lang.String o1, java.lang.String o2) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals
    • Constructor Detail

      • PathUtils.PathComparator

        public PathUtils.PathComparator()
    • 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>