Instants. If either timestamp has a zero
fraction, compares only seconds. If either timestamp has no time fraction
smaller than a millisecond, compares only milliseconds. If either timestamp
has no fraction smaller than a microsecond, compares only microseconds.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Instant
the first object to be compared. a, Instant the second object to be compared. b)Implements java. Compares its two arguments for order. |
| public int |
| InstantComparator | back to summary |
|---|---|
| pack-priv InstantComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Instant a, Instant b) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| compare | back to summary |
|---|---|
| public int compare(Instant a, Instant b, boolean forceSecondsOnly) Compares two | |