Class ConverterCollections.ConverterComparator<F,​T>

  • Type Parameters:
    F - the type of the elements the underlying Comparator compares
    T - the type that the elements should be converted to
    All Implemented Interfaces:
    Comparator<T>
    Enclosing class:
    ConverterCollections

    public static class ConverterCollections.ConverterComparator<F,​T>
    extends Object
    implements Comparator<T>
    A Comparator that Converts the elements before comparing them.
    • Constructor Detail

      • ConverterComparator

        public ConverterComparator​(Comparator<? super F> comparator,
                                   Converter<T,​F> conv)
        Constructor.
        Parameters:
        comparator - the comparator to wrap
        conv - the converter to use