|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.dailyprojectdata.resource.codeissue.IssueTypeCounter
public class IssueTypeCounter
IssueTypeCounter takes a set of CodeIssue SensorData all associated with a single tool, and constructs a data structure that maps issue types to their aggregate counts across all tools. For example, consider two CodeIssue sensor data instances, illustrated below:
[SensorData tool="Foo" sdt="CodeIssue" properties(["JavaDoc", "2"], ["Indentation", "3"])] [SensorData tool="Foo" sdt="CodeIssue" properties(["JavaDoc", "4"], ["NPE", "3"])]We process these SensorData instances into the following IssueTypeCounter map:
["JavaDoc", 6] ["Indentation", 3] ["NPE", 3]
Constructor Summary | |
---|---|
IssueTypeCounter(java.util.Set<org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData> dataSet,
java.util.logging.Logger logger)
Constructs the IssueTypeCounter from the passed set of SensorData instances. |
Method Summary | |
---|---|
int |
getCount(java.lang.String type)
Return the number of CodeIssues of the given type found in this snapshot. |
java.util.Set<java.lang.String> |
getTypes()
Get the set of all types found from processing the sensor data snapshot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IssueTypeCounter(java.util.Set<org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData> dataSet, java.util.logging.Logger logger)
dataSet
- The snapshot of sensor data instances for a given tool.logger
- The logger to get errors.Method Detail |
---|
public java.util.Set<java.lang.String> getTypes()
public int getCount(java.lang.String type)
type
- The CodeIssue type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |