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 FormConstructor 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, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(TimeStamped timeStamped1, TimeStamped timeStamped2)
compare
in interface Comparator<TimeStamped>
timeStamped1
- first time-stamped instancetimeStamped2
- second time-stamped instanceCopyright © 2021 CNES. All rights reserved.