Class SplittableTimeLineRange
java.lang.Object
overit.geocallapp.wfm.orchestrator.planning.timeline.SplittableTimeLineRange
- All Implemented Interfaces:
Serializable
Splittable TimeLineItem object
- Since:
- 19.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SplittableTimeLineRangebuildSplittableTimeLineRange(TimeLineItem<?> item, SplitCriteria criteria) booleanReturn true if the input date is contained in the current range, false otherwise.getBegin()Returns the start date of the rangeintgetDuration(int unit) Returns the range duration.getEnd()Returns the end date of the rangeTimeLineItem<?> getItem()Returns the item of the time rangeReturns the sublist of ranges that overlaps the current range.booleanReturns true if the input range is adjacent to the current range, false otherwise;booleanReturn true if the input range overlaps the current range, false otherwise.split(boolean includeExtremities) toString()
-
Constructor Details
-
SplittableTimeLineRange
public SplittableTimeLineRange()
-
-
Method Details
-
buildSplittableTimeLineRange
public static SplittableTimeLineRange buildSplittableTimeLineRange(TimeLineItem<?> item, SplitCriteria criteria) -
split
-
getBegin
Returns the start date of the range- Returns:
- the start date of the range
-
getEnd
Returns the end date of the range- Returns:
- the end date of the range
-
getItem
Returns the item of the time range- Returns:
-
isOverlapping
Return true if the input range overlaps the current range, false otherwise. -
getOverlappingRanges
Returns the sublist of ranges that overlaps the current range. -
contains
Return true if the input date is contained in the current range, false otherwise.- Parameters:
date- the input dateexcludeEndDate- says if the end date is an inclusion point or not- Returns:
-
isAdjacent
Returns true if the input range is adjacent to the current range, false otherwise; -
getDuration
public int getDuration(int unit) Returns the range duration. -
toString
-