java.lang.Object
org.jhotdraw8.base.text.CachingCollator
- All Implemented Interfaces:
Comparator<String>
A
Comparator that compares Strings using a provided
Collator.
This comparator caches the collation keys.
- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintMethods 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
-
CachingCollator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<String>
-
clearCache
public void clearCache()
-