org.opencms.util
Class CmsStringUtil.CmsSlashComparator
java.lang.Object
org.opencms.util.CmsStringUtil.CmsSlashComparator
- All Implemented Interfaces:
- Comparator<String>
- Enclosing class:
- CmsStringUtil
public static class CmsStringUtil.CmsSlashComparator
- extends Object
- implements Comparator<String>
Compares two Strings according to the count of containing slashes.
If both Strings contain the same count of slashes the Strings are compared.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CmsStringUtil.CmsSlashComparator
public CmsStringUtil.CmsSlashComparator()
compare
public int compare(String a,
String b)
- Specified by:
compare
in interface Comparator<String>
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)