Package org.orekit.time
Class ChronologicalComparator
- java.lang.Object
-
- org.orekit.time.ChronologicalComparator
-
- All Implemented Interfaces:
Serializable
,Comparator<TimeStamped>
public class ChronologicalComparator extends Object implements Comparator<TimeStamped>, Serializable
Comparator forTimeStamped
instance.- Author:
- Luc Maisonobe
- See Also:
AbsoluteDate
,TimeStamped
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChronologicalComparator()
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(TimeStamped timeStamped1, TimeStamped timeStamped2)
Compare two time-stamped instances.-
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(TimeStamped timeStamped1, TimeStamped timeStamped2)
Compare two time-stamped instances.- Specified by:
compare
in interfaceComparator<TimeStamped>
- Parameters:
timeStamped1
- first time-stamped instancetimeStamped2
- second time-stamped instance- Returns:
- a negative integer, zero, or a positive integer as the first instance is before, simultaneous, or after the second one.
-
-