public final class IncrementalModificationCounter extends Object implements ModificationCounter
| Constructor and Description |
|---|
IncrementalModificationCounter() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentValue()
Returns the current value of the counter.
|
boolean |
isModifiedSince(int lastValue)
Returns true if the counter was modified since the given value (if
ModificationCounter.notifyModified()
has been invoked); false — otherwise. |
void |
notifyModified()
Notifies this counter that the source object is modified, updating its current value.
|
public boolean isModifiedSince(int lastValue)
ModificationCounterModificationCounter.notifyModified()
has been invoked); false — otherwise.isModifiedSince in interface ModificationCounterlastValue - the last value of the counterpublic int getCurrentValue()
ModificationCountergetCurrentValue in interface ModificationCounterpublic void notifyModified()
ModificationCounternotifyModified in interface ModificationCounterCopyright © 2019 Exonum. All rights reserved.