Package org.opencms.util
Class CmsStringUtil.CmsSlashComparator
java.lang.Object
org.opencms.util.CmsStringUtil.CmsSlashComparator
- All Implemented Interfaces:
Comparator<String>
- Enclosing class:
- CmsStringUtil
Compares two Strings according to the count of containing slashes.
If both Strings contain the same count of slashes the Strings are compared.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CmsSlashComparator
public CmsSlashComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
- See Also:
-