Package adams.data

Class SortedList.DefaultComparator

    • Constructor Detail

      • DefaultComparator

        public DefaultComparator()
    • Method Detail

      • compare

        public int compare​(Object o1,
                           Object o2)
        Compares the two objects.
        Specified by:
        compare in interface Comparator
        Parameters:
        o1 - the first object
        o2 - the second object
        Returns:
        less than zero, zero or greater than zero if o1 is smaller than, equal to or greater than o2 respectively