Class AlphanumComparator<T>
java.lang.Object
io.goobi.viewer.controller.sorting.AlphanumComparator<T>
- All Implemented Interfaces:
Serializable,Comparator<T>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAlphanumComparator(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, waitMethods 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:
comparein interfaceComparator<T>
-
normalizeString
- Parameters:
s- String to normalizeignoreChars- Optional string containing leading characters to remove from the string- Returns:
- Cleaned-up string for comparison
-