public static class Stats.Statistics
extends java.lang.Object
Constructor and Description |
---|
Stats.Statistics() |
Modifier and Type | Method and Description |
---|---|
int |
getCountBySource(java.lang.String source)
Get a sub-total for a specific source.
|
java.util.Set<java.lang.String> |
getSources()
Gets a set of sources for which a sub-total
is available.
|
int |
getTotal()
Gets the total for this statistic.
|
void |
setCountBySource(java.lang.String source,
int count)
Sets the sub-total for a specific source.
|
void |
setTotal(int total)
Sets the total for this statistic.
|
public int getTotal()
public void setTotal(int total)
total
- public java.util.Set<java.lang.String> getSources()
public int getCountBySource(java.lang.String source)
source
- source namepublic void setCountBySource(java.lang.String source, int count)
source
- source namecount
- sub-total or -1 if it is not known