|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.issue.util.AggregateTimeTrackingBean
public class AggregateTimeTrackingBean
Bean to store values of Time Tracking Aggregate values. It is more efficient to calculate them all at the same time (looping only once), and an instance of this is returned.
Field Summary | |
---|---|
static String |
AGG_TIMETRACKING
|
Constructor Summary | |
---|---|
AggregateTimeTrackingBean(Long originalEstimate,
Long remainingEstimate,
Long timeSpent,
int subtaskCount)
|
Method Summary | |
---|---|
static Long |
addAndPreserveNull(Long estValue,
Long origValue)
Method to calculate the addition of two Longs, while preserving null if they are both null. |
void |
bumpGreatestSubTaskEstimate(Long originalEstimate,
Long remainingEstimate,
Long timeSpent)
When this is called, the current values of the bean are used to work out the the greatest sub task estimate. |
Long |
getGreastestSubTaskEstimate()
This property is used to track the largest sub task estimate encountered so far. |
Long |
getOriginalEstimate()
|
Long |
getRemainingEstimate()
|
int |
getSubTaskCount()
|
static Long |
getTheGreaterOfEstimates(Long originalEstimate,
Long remainingEstimate,
Long timeSpent)
Finds the greater of the original estimate OR the remaining estimate plus the time spent. |
Long |
getTimeSpent()
|
void |
setGreastestSubTaskEstimate(Long greastestSubTaskEstimate)
|
void |
setOriginalEstimate(Long originalEstimate)
|
void |
setRemainingEstimate(Long remainingEstimate)
|
void |
setSubTaskCount(int subtaskCount)
|
void |
setTimeSpent(Long timeSpent)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String AGG_TIMETRACKING
Constructor Detail |
---|
public AggregateTimeTrackingBean(Long originalEstimate, Long remainingEstimate, Long timeSpent, int subtaskCount)
Method Detail |
---|
public Long getTimeSpent()
public void setTimeSpent(Long timeSpent)
public Long getOriginalEstimate()
public void setOriginalEstimate(Long originalEstimate)
public Long getRemainingEstimate()
public void setRemainingEstimate(Long remainingEstimate)
public int getSubTaskCount()
public void setSubTaskCount(int subtaskCount)
public Long getGreastestSubTaskEstimate()
public void setGreastestSubTaskEstimate(Long greastestSubTaskEstimate)
public void bumpGreatestSubTaskEstimate(Long originalEstimate, Long remainingEstimate, Long timeSpent)
originalEstimate
- an issue's original estimateremainingEstimate
- an issue's remaining estimatetimeSpent
- an issue time spentpublic static Long getTheGreaterOfEstimates(Long originalEstimate, Long remainingEstimate, Long timeSpent)
originalEstimate
- original estimateremainingEstimate
- remaining estimatetimeSpent
- the time spent
public static Long addAndPreserveNull(Long estValue, Long origValue)
estValue
- value from issueorigValue
- value from bean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |