Package adams.data.trail
Class StepComparator
- java.lang.Object
-
- adams.data.container.DataPointComparator<Step>
-
- adams.data.trail.StepComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<Step>
public class StepComparator extends adams.data.container.DataPointComparator<Step>
Comparator for Step objects.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StepComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(Step o1, Step o2)
Compares its two arguments for order.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
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 interfaceComparator<Step>
- Specified by:
compare
in classadams.data.container.DataPointComparator<Step>
- Parameters:
o1
- the first objecto2
- 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.
-
-