public class Counter extends Object
Constructor and Description |
---|
Counter() |
Modifier and Type | Method and Description |
---|---|
void |
dec(long value)
Decrement counter
|
long |
get()
Returns current value
|
void |
inc(long value)
Increment counter
|
void |
set(long value)
Set counter
|