Package pro.taskana.common.api
Class LocalTimeInterval
- java.lang.Object
-
- pro.taskana.common.internal.Interval<LocalTime>
-
- pro.taskana.common.api.LocalTimeInterval
-
- All Implemented Interfaces:
Comparable<LocalTimeInterval>
public class LocalTimeInterval extends Interval<LocalTime> implements Comparable<LocalTimeInterval>
LocalTimeInterval provides a closed interval usingLocalTime.That means both begin and end must not be
null.Note: this class has a natural ordering that is inconsistent with equals.
-
-
Constructor Summary
Constructors Constructor Description LocalTimeInterval(LocalTime begin, LocalTime end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(LocalTimeInterval o)Compares two LocalTimeInterval objects in regard to theirbegin.
-
-
-
Method Detail
-
compareTo
public int compareTo(LocalTimeInterval o)
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.
-
-