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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CmsSlashComparator
public CmsSlashComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<String>- See Also:
-