public class TaskProgressInterval extends Object
| Constructor and Description |
|---|
TaskProgressInterval(TaskProgressSink taskProgressSink,
int startPercent,
int endPercent) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEndPercent()
Returns the overall percentage done at which this interval ends.
|
int |
getStartPercent()
Returns the overall percentage done at which this interval starts.
|
TaskProgressInterval |
getSubInterval(int subIntervalStartPercent,
int subIntervalEndPercent)
Returns a subinterval of this interval.
|
TaskProgressSink |
getTaskProgressSink()
Returns the TaskProgressSink that this interval is to be used for.
|
public TaskProgressInterval(TaskProgressSink taskProgressSink, int startPercent, int endPercent)
public TaskProgressInterval getSubInterval(int subIntervalStartPercent, int subIntervalEndPercent)
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%.
subIntervalStartPercent - The start percent of the sub interval within the parent interval.subIntervalEndPercent - The end percent of the sub interval within the parent interval.public int getStartPercent()
public int getEndPercent()
public TaskProgressSink getTaskProgressSink()
Copyright © 2002-2016 Atlassian. All Rights Reserved.