Class StepComparator

  • All Implemented Interfaces:
    Serializable, Comparator<Step>

    public class StepComparator
    extends adams.data.container.DataPointComparator<Step>
    Comparator for Step objects.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • StepComparator

        public StepComparator()
    • Method Detail

      • compare

        public int compare​(Step o1,
                           Step o2)
        Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
        Specified by:
        compare in interface Comparator<Step>
        Specified by:
        compare in class adams.data.container.DataPointComparator<Step>
        Parameters:
        o1 - the first object
        o2 - the second object
        Returns:
        a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.