Interval.compare(a,b)

Compares two Intervals. The comparison returns: - 0 if "a" is equal to "b"; - a value less than 0 if "b" is previous cronologically to "a"; - a value greater than 0 otherwise. If one of the parameters is null, it is considered less than the other.

Arguments:

Name Type Description Mode
a Interval Interval first Interval to be compared. in
b Interval Interval second Interval to be compared. in