@Override
public int compareTo (Duration d)

Compares durations represented by this object and the specified object. Returns a negative integer, zero, or a positive integer as this duration is less than, equal to, or greater than the specified duration.

Parameters:
d    the duration to be compared.

Returns:  a negative integer, zero, or a positive integer as this duration is less than, equal to, or greater than the specified duration.