Class TaskProgressInterval
java.lang.Object
com.atlassian.jira.imports.project.taskprogress.TaskProgressInterval
Represents an interval of an overall Task Progress bar.
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionTaskProgressInterval
(TaskProgressSink taskProgressSink, int startPercent, int endPercent) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the overall percentage done at which this interval ends.int
Returns the overall percentage done at which this interval starts.getSubInterval
(int subIntervalStartPercent, int subIntervalEndPercent) Returns a subinterval of this interval.Returns the TaskProgressSink that this interval is to be used for.
-
Constructor Details
-
TaskProgressInterval
-
-
Method Details
-
getSubInterval
Returns a subinterval of this interval. You pass in the start and end percent of the subinterval. A TaskProgressInterval is returned which contains the start and end of the overall progress for the subinterval.eg If the parent interval runs from 20% - 60%, and we ask for a sub interval that runs from 25% - 50% of its parent, then the returned TaskProgressInterval would start at 30% and end at 40%.
- Parameters:
subIntervalStartPercent
- The start percent of the sub interval within the parent interval.subIntervalEndPercent
- The end percent of the sub interval within the parent interval.- Returns:
- a subinterval of this interval.
-
getStartPercent
public int getStartPercent()Returns the overall percentage done at which this interval starts.- Returns:
- the overall percentage done at which this interval starts.
-
getEndPercent
public int getEndPercent()Returns the overall percentage done at which this interval ends.- Returns:
- the overall percentage done at which this interval ends.
-
getTaskProgressSink
Returns the TaskProgressSink that this interval is to be used for.- Returns:
- the TaskProgressSink that this interval is to be used for.
-