Class TaskProgressInterval

java.lang.Object
com.atlassian.jira.imports.project.taskprogress.TaskProgressInterval

public class TaskProgressInterval extends Object
Represents an interval of an overall Task Progress bar.
Since:
v3.13
  • Constructor Details

    • TaskProgressInterval

      public TaskProgressInterval(TaskProgressSink taskProgressSink, int startPercent, int endPercent)
  • Method Details

    • getSubInterval

      public TaskProgressInterval getSubInterval(int subIntervalStartPercent, int subIntervalEndPercent)
      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

      public TaskProgressSink getTaskProgressSink()
      Returns the TaskProgressSink that this interval is to be used for.
      Returns:
      the TaskProgressSink that this interval is to be used for.