org.hackystat.dailyprojectdata.resource.build
Class MemberBuildCounter

java.lang.Object
  extended by org.hackystat.dailyprojectdata.resource.build.MemberBuildCounter

public class MemberBuildCounter
extends java.lang.Object

Counts the number of successful and failed builds each user had.

Author:
jsakuda

Constructor Summary
MemberBuildCounter()
           
 
Method Summary
 void addFailedBuild(java.lang.String user)
          Adds a failed build for a user.
 void addSuccessfulBuild(java.lang.String user)
          Adds a successful build for a user.
 java.util.Map<java.lang.String,java.lang.Integer> getFailedBuilds()
          Gets a mapping of users to the number of failed builds they had.
 java.util.Set<java.lang.String> getMembers()
          Gets a set of all the members.
 java.util.Map<java.lang.String,java.lang.Integer> getSuccessfulBuilds()
          Gets a mapping of users to the number of successful builds they had.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemberBuildCounter

public MemberBuildCounter()
Method Detail

addSuccessfulBuild

public void addSuccessfulBuild(java.lang.String user)
Adds a successful build for a user.

Parameters:
user - The user that had a successful build.

addFailedBuild

public void addFailedBuild(java.lang.String user)
Adds a failed build for a user.

Parameters:
user - The user that had a failed build.

getSuccessfulBuilds

public java.util.Map<java.lang.String,java.lang.Integer> getSuccessfulBuilds()
Gets a mapping of users to the number of successful builds they had.

Returns:
Returns a mapping of users to the number of successful builds they had.

getFailedBuilds

public java.util.Map<java.lang.String,java.lang.Integer> getFailedBuilds()
Gets a mapping of users to the number of failed builds they had.

Returns:
Returns a mapping of users to the number of failed builds they had.

getMembers

public java.util.Set<java.lang.String> getMembers()
Gets a set of all the members.

Returns:
Returns all the members.