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.
use AlphanumComparator instead with constructor
new AlphanumComparator<IFacetItem>(true, locale,
                        i -> i.getTranslatedLabel() != null ? i.getTranslatedLabel() : i.getLabel())
Custom string comparator for browsing terms (case-insensitive, ignores brackets, natural sorting).
See Also:
  • Constructor Details

    • FacetItemAlphanumComparator

      public FacetItemAlphanumComparator(Locale locale)
      Deprecated.
  • Method Details

    • compare

      public int compare(IFacetItem o1, IFacetItem o2)
      Deprecated.
      Specified by:
      compare in interface Comparator<IFacetItem>
    • normalizeString

      public static String normalizeString(String s, String ignoreChars)
      Deprecated.
      Parameters:
      s - String to normalize
      ignoreChars - Optional string containing leading characters to remove from the string
      Returns:
      Cleaned-up string for comparison