com.ibm.wsspi.kernel.service.utils
Class PathUtils.PathComparator

java.lang.Object
  extended by 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
static char PATH_SEPARATOR
           
 
Constructor Summary
PathUtils.PathComparator()
           
 
Method Summary
 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
 

Field Detail

PATH_SEPARATOR

public static final char PATH_SEPARATOR
See Also:
Constant Field Values
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>