public class ChronologicalComparator extends Object implements Comparator<TimeStamped>, Serializable
TimeStamped instance.
null is not an accepted value for generic ChronologicalComparator. In order to handle null
values, a null-compliant comparator should be built with one of the following methods:
Comparator.nullsFirst(new ChronologicalComparator()): null values being set firstComparator.nullsLast(new ChronologicalComparator()): null values being set lastAbsoluteDate,
TimeStamped,
Serialized Form| Constructor and Description |
|---|
ChronologicalComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(TimeStamped timeStamped1,
TimeStamped timeStamped2)
Compare two time-stamped instances.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic int compare(TimeStamped timeStamped1, TimeStamped timeStamped2)
compare in interface Comparator<TimeStamped>timeStamped1 - first time-stamped instancetimeStamped2 - second time-stamped instanceCopyright © 2024 CNES. All rights reserved.