|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.jenkins.plugins.bfa.utils.ObjectCountPair<T>
T
- the object type that we countpublic class ObjectCountPair<T>
Class for keeping track of the number of copies of the same object. Can for example be used for keeping track of how many times a specific FailureCause has been triggered.
Constructor Summary | |
---|---|
ObjectCountPair(T object,
int count)
Standard constructor. |
Method Summary | |
---|---|
void |
addCount(int add)
Adds argument number to the counter. |
static Comparator<ObjectCountPair> |
countComparator()
Gets a comparator that compares the count. |
int |
getCount()
Getter for the counter. |
T |
getObject()
Getter for the object we are counting. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectCountPair(T object, int count)
object
- the object we are countingcount
- the number of copies we have of the objectMethod Detail |
---|
public T getObject()
public int getCount()
public void addCount(int add)
add
- integer value to addpublic static Comparator<ObjectCountPair> countComparator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |