public abstract class ACounter extends Object implements ICounter
IMeasures.
ICounter.Impl| Modifier and Type | Field and Description |
|---|---|
protected long |
max |
protected IMeasures |
measures |
| Constructor and Description |
|---|
ACounter(IMeasures measures,
long limit) |
| Modifier and Type | Method and Description |
|---|---|
long |
getLimitValue() |
void |
init() |
boolean |
isMet() |
boolean |
isMet(long value) |
void |
overrideLimit(long newLimit) |
void |
update() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrentValueprotected IMeasures measures
protected long max
public ACounter(IMeasures measures, long limit)
public boolean isMet(long value)
isMet in interface LongCriterionpublic final void overrideLimit(long newLimit)
overrideLimit in interface ICounterpublic long getLimitValue()
getLimitValue in interface ICounterCopyright © 2017. All rights reserved.