Package pro.taskana.common.api
Class LocalTimeInterval
- All Implemented Interfaces:
Comparable<LocalTimeInterval>
LocalTimeInterval provides a closed interval using
LocalTime.
That means both begin and end must not be null.
Note: this class has a natural ordering that is inconsistent with equals.
-
Constructor Details
-
LocalTimeInterval
-
-
Method Details
-
compareTo
Compares two LocalTimeInterval objects in regard to theirbegin.- Specified by:
compareToin interfaceComparable<LocalTimeInterval>- Parameters:
o- the LocalTimeInterval to be compared.- Returns:
- a negative value if
obegins beforethis, 0 if both have the same begin and a positive value ifobegins afterthis.
-