Package adams.core

Class AbstractDataBackedUnorderedRange.InvertedStringLengthComparator

    • Constructor Detail

      • InvertedStringLengthComparator

        public InvertedStringLengthComparator()
    • Method Detail

      • compare

        public int compare​(String o1,
                           String o2)
        Compares the two strings. Returns -1 if o1 longer than o2, returns 0 if both strings have the same length, returns 1 if o2 longer than o1.
        Specified by:
        compare in interface Comparator<String>
        Parameters:
        o1 - first string
        o2 - second string
        Returns:
        the comparison result