Package org.orekit.time
Class FieldChronologicalComparator<KK extends CalculusFieldElement<KK>>
- java.lang.Object
-
- org.orekit.time.FieldChronologicalComparator<KK>
-
- Type Parameters:
KK- type of the field elements
- All Implemented Interfaces:
Serializable,Comparator<FieldTimeStamped<KK>>
public class FieldChronologicalComparator<KK extends CalculusFieldElement<KK>> extends Object implements Comparator<FieldTimeStamped<KK>>, Serializable
Comparator forFieldTimeStampedinstance.- Author:
- Luc Maisonobe, Vincent Cucchietti
- See Also:
FieldAbsoluteDate,FieldTimeStamped, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FieldChronologicalComparator()Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(FieldTimeStamped<KK> timeStamped1, FieldTimeStamped<KK> 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(FieldTimeStamped<KK> timeStamped1, FieldTimeStamped<KK> timeStamped2)
Compare two time-stamped instances.- Specified by:
comparein interfaceComparator<KK extends CalculusFieldElement<KK>>- 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.
-
-