|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.aggregation.CountryHitCounter
@Entity public final class CountryHitCounter
Maps a counter to a country.
Used by:
CountryPerPIRecordAggregationCountryPerVisitAggregation
| Constructor Summary | |
|---|---|
protected |
CountryHitCounter()
Deprecated. |
|
CountryHitCounter(java.lang.String c)
Creates a new CountryHitCounter with the given country. |
|
CountryHitCounter(java.lang.String c,
int i)
Creates a new CountryHitCounter with the given country and
the given initial count. |
| Method Summary | |
|---|---|
int |
getCount()
Returns the value of the internal total. |
java.lang.String |
getCountry()
Returns the country. |
protected void |
increase()
Adds 1 to the internal total. |
protected void |
increaseBy(int count)
Adds the given integer to the internal total. |
boolean |
isCountry(java.lang.String c)
Test whether the given country-string matches the internal country. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected CountryHitCounter()
public CountryHitCounter(java.lang.String c)
CountryHitCounter with the given country.
c - the country
public CountryHitCounter(java.lang.String c,
int i)
CountryHitCounter with the given country and
the given initial count.
c - the countryi - the value to initialise counter with
java.lang.IllegalArgumentException - if c null or empty string| Method Detail |
|---|
public java.lang.String getCountry()
public boolean isCountry(java.lang.String c)
c - the country
true if and only if the internal country
matches the given country-string, false otherwisepublic int getCount()
getCount in interface ICountprotected void increase()
protected void increaseBy(int count)
count - the integer to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||