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 for
FieldTimeStamped instance.- Author:
- Luc Maisonobe, Vincent Cucchietti
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(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, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
FieldChronologicalComparator
public FieldChronologicalComparator()Simple constructor.
-
-
Method Details
-
compare
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.
-