Class AlphanumComparator<T>

java.lang.Object
io.goobi.viewer.controller.sorting.AlphanumComparator<T>
All Implemented Interfaces:
Serializable, Comparator<T>

public class AlphanumComparator<T> extends Object implements Comparator<T>, Serializable
See Also:
  • Constructor Details

  • Method Details

    • compare

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

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