Class AlphanumComparator<T>
java.lang.Object
io.goobi.viewer.controller.sorting.AlphanumComparator<T>
- All Implemented Interfaces:
Serializable
,Comparator<T>
- See Also:
-
Constructor Summary
ConstructorDescriptionAlphanumComparator
(boolean asc, Locale locale, ITranslator<T> translator) AlphanumComparator
(boolean asc, Locale locale, Function<T, String> stringifier) -
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
-
AlphanumComparator
-
AlphanumComparator
-
AlphanumComparator
-
AlphanumComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-
normalizeString
- Parameters:
s
- String to normalizeignoreChars
- Optional string containing leading characters to remove from the string- Returns:
- Cleaned-up string for comparison
-