|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Configurable counter with a one-2-many relation ship between a counting function and key/value pairs.
BaseCounter.reset()
will discard all key/value result pairs
and keep only the counter functions installed via
addRule(UnaryFunction)
.
StaticCounter
Method Summary | |
void |
addRule(UnaryFunction pCounterFunction)
Installs a new rule expressed as UnaryFunction . |
Methods inherited from interface org.xshare.base.counter.BaseCounter |
getResultFor, getResultKeys, hasResultFor, passThrough, passThrough, reset |
Method Detail |
public void addRule(UnaryFunction pCounterFunction)
UnaryFunction
.
pCounterFunction
- an UnaryFunction
object,
representing the a counting function.
NullPointerFunction
- if the given function is
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |