|
|
|
|
|
||||||||||
| 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.AbstractRegexVersionedCounter<T>
T - the type of the AbstractAggregation the AbstractRegexVersionedCounter belongs to@MappedSuperclass public abstract class AbstractRegexVersionedCounter<T extends AbstractAggregation>
An abstract base class to derive a statistical data aggregation entity
aggregating RegexVersions from. This would basically be the actual
counter, counting the RegexVersions of the AbstractAggregation the AbstractRegexVersionedCounter belongs to.
| Constructor Summary | |
|---|---|
AbstractRegexVersionedCounter()
|
|
| Method Summary | |
|---|---|
T |
getAggreation()
Returns the "parent-" AbstractAggregation the AbstractRegexVersionedCounter belongs to. |
int |
getCount()
Returns the value of the underlying counter. |
RegexVersion |
getVersion()
Returns the underlying Version. |
void |
increase()
Adds 1 to the internal counter. |
boolean |
isMatch(java.lang.String s)
Checks the given string against the underlying version. |
protected void |
setAggreation(T aggregation)
Sets the given AbstractAggregation for the AbstractRegexVersionedCounter. |
protected void |
setCounter(int count)
Sets the internal counter to the given value. |
protected void |
setVersion(RegexVersion v)
Sets the given Version. |
java.lang.String |
toString()
Returns a string representation of the AbstractRegexVersionedCounter. |
| 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, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRegexVersionedCounter()
| Method Detail |
|---|
public final T getAggreation()
AbstractAggregation the AbstractRegexVersionedCounter belongs to.
protected final void setAggreation(T aggregation)
AbstractAggregation for the AbstractRegexVersionedCounter.
aggregation - the AbstractAggregation
java.lang.NullPointerException - if
nullpublic final int getCount()
getCount in interface ICountprotected final void setCounter(int count)
count - the value to set
java.lang.IllegalArgumentException - if
public final RegexVersion getVersion()
Version.
protected final void setVersion(RegexVersion v)
Version.
v - the Version
java.lang.NullPointerException - if
nullpublic final void increase()
public final boolean isMatch(java.lang.String s)
s - the string to check
true if the given match matches against the underlying
version, false otherwisepublic java.lang.String toString()
AbstractRegexVersionedCounter.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||