Package io.goobi.viewer.model.search
Class FacetItemAlphanumComparator
java.lang.Object
io.goobi.viewer.model.search.FacetItemAlphanumComparator
- All Implemented Interfaces:
Serializable
,Comparator<IFacetItem>
@Deprecated(since="24.10")
public class FacetItemAlphanumComparator
extends Object
implements Comparator<IFacetItem>, Serializable
Deprecated.
Custom string comparator for browsing terms (case-insensitive, ignores brackets, natural sorting).
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(IFacetItem o1, IFacetItem o2) Deprecated.static String
normalizeString
(String s, String ignoreChars) Deprecated.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
-
FacetItemAlphanumComparator
Deprecated.
-
-
Method Details
-
compare
Deprecated.- Specified by:
compare
in interfaceComparator<IFacetItem>
-
normalizeString
Deprecated.- Parameters:
s
- String to normalizeignoreChars
- Optional string containing leading characters to remove from the string- Returns:
- Cleaned-up string for comparison
-
AlphanumComparator
instead with constructor