Class AlphabeticHtmlComparator<T>

java.lang.Object
io.goobi.viewer.controller.sorting.AlphabeticHtmlComparator<T>
Type Parameters:
T - the type of elements to be compared
All Implemented Interfaces:
Comparator<T>

public class AlphabeticHtmlComparator<T> extends Object implements Comparator<T>
Comparator that orders elements alphabetically by the plain text extracted from their HTML string representation using Jsoup, with support for ascending or descending order.
  • Constructor Details

    • AlphabeticHtmlComparator

      public AlphabeticHtmlComparator(boolean asc, Function<T,String> stringifier)
  • Method Details