com.ibm.wsspi.kernel.service.utils

Class PathUtils.PathComparator

  1. java.lang.Object
  2. extended bycom.ibm.wsspi.kernel.service.utils.PathUtils.PathComparator
All implemented interfaces:
java.io.Serializable, java.util.Comparator<java.lang.String>
Enclosing class:
PathUtils

  1. public static class PathUtils.PathComparator
  2. extends java.lang.Object
  3. 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

Modifier and Type Field and Description
  1. static
  2. char
PATH_SEPARATOR

Constructor Summary

Constructor and Description
PathUtils.PathComparator()

Method Summary

Modifier and Type Method and Description
  1. 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

  1. public static final char PATH_SEPARATOR
See Also:

Constructor Detail

PathUtils.PathComparator

  1. public PathUtils.PathComparator( )

Method Detail

compare

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