|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.dailyprojectdata.resource.commit.CommitDataContainer
public class CommitDataContainer
The data container that abstracts the data retrieval of Commit information. To Do: (1) change from a List to a Map[Owner, SensorData].
Constructor Summary | |
---|---|
CommitDataContainer()
|
Method Summary | |
---|---|
void |
addCommitData(org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData data)
Adds the specified SensorData instance to this container if it contains the three Commit properties (linesDeleted, linesAdded, totalLines) and if these property values are integers. |
int |
getCommits(java.lang.String owner)
Returns the total commits made by the specified owner. |
java.util.List<CommitData> |
getData()
Returns a copy of the list containing all of the added SensorData instances. |
int |
getLinesAdded(java.lang.String owner)
Returns the total lines added by the specified owner. |
int |
getLinesDeleted(java.lang.String owner)
Returns the total lines deleted by the specified owner. |
int |
getLinesModified(java.lang.String owner)
Returns the total lines modified by the specified owner. |
java.util.List<java.lang.String> |
getOwners()
Returns a set of owners of the wrapped SensorData. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommitDataContainer()
Method Detail |
---|
public void addCommitData(org.hackystat.sensorbase.resource.sensordata.jaxb.SensorData data)
data
- the specified data instance.public java.util.List<java.lang.String> getOwners()
public int getLinesAdded(java.lang.String owner)
owner
- the specified owner.
public int getLinesDeleted(java.lang.String owner)
owner
- the specified owner.
public int getLinesModified(java.lang.String owner)
owner
- The specified owner.
public int getCommits(java.lang.String owner)
owner
- the specified owner.
public java.util.List<CommitData> getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |