compare To
Compares this point in time to the given one.
The other
point should have the exact runtime type as this one. Otherwise, an IllegalArgumentException
is thrown. The same constraint is applicable to other comparison methods that accept arguments with the type <T>
.
Return
- an integer greater than 0 if point in time occurs later than the other;
- an integer less than 0 if point in time occurs earlier than other;
- and 0 of these points in time are identical.
Parameters
other
the value to compare to
Compares this point in time to the given one.