|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.project.statistics.Statistic
This class is the low level Statistic value. It holds the value for each StatisticType and key within that type
| Constructor Summary | |
Statistic(StatisticType type,
StatisticSecurityType statisticSecurityType,
java.lang.String key,
GenericValue issue)
This constructor builds a new Statistic object |
|
| Method Summary | |
void |
addIssue(java.lang.Long issueId)
|
boolean |
equals(java.lang.Object o)
|
java.util.Set |
getIssueIds()
|
java.lang.String |
getKey()
Returns the key of the Statistic |
protected java.util.Set |
getRealIssueIds()
|
java.lang.Object |
getStatisticSecurityKey()
|
StatisticSecurityType |
getStatisticSecurityType()
|
StatisticType |
getType()
Returns the type of the Statistic. |
int |
hashCode()
|
boolean |
hasStatisticSecurityKey(java.lang.Object object)
|
void |
merge(Statistic statistic)
Merges the values of the passed in Statistic with the current object. |
void |
removeIssue(java.lang.Long issueId)
|
boolean |
sameAs(Statistic value)
Determines if the Statistic passed in is the same as the current object
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Statistic(StatisticType type,
StatisticSecurityType statisticSecurityType,
java.lang.String key,
GenericValue issue)
Statistic object
type - The StatisticType that this Statistic is forkey - The key that identifies this Statisticissue - The Id of an issue| Method Detail |
public boolean sameAs(Statistic value)
Statistic passed in is the same as the current object
If the key and the type are the same then the Statistics are deemed to be the same
public void merge(Statistic statistic)
Statistic with the current object.
The value of this Statistic will be increased by the amount of the passed in Statistic,
while the passed in Statistic will be decreased to zero.
java.lang.IllegalArgumentException - if the passed in statistic has a different type or key.public java.lang.String getKey()
Statistic
public StatisticType getType()
Statistic. This will be a StatisticType
public StatisticSecurityType getStatisticSecurityType()
public boolean hasStatisticSecurityKey(java.lang.Object object)
public java.lang.Object getStatisticSecurityKey()
protected java.util.Set getRealIssueIds()
public java.util.Set getIssueIds()
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public void addIssue(java.lang.Long issueId)
throws StatisticOutOfDateException
StatisticOutOfDateException
public void removeIssue(java.lang.Long issueId)
throws StatisticOutOfDateException
StatisticOutOfDateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||