public interface WindowCounter
| Modifier and Type | Method and Description |
|---|---|
void |
add(long delta)
Increment the counter by
delta. |
long |
getSum()
Returns the counter's current value.
|
void add(long delta)
delta.
If You want to decrement instead of increment then use negative delta.delta - the amount by which the counter will be increasedlong getSum()
Copyright © 2020. All rights reserved.