Modifier and Type | Method and Description |
---|---|
void |
decrement()
Decrement the counter by one.
|
void |
decrement(long n)
Decrement the counter by
n . |
void |
increment()
Increment the counter by one.
|
void |
increment(long n)
Increment the counter by
n . |
void increment()
void decrement()
void increment(long n)
n
.n
- the amount by which the counter will be increasedvoid decrement(long n)
n
.n
- the amount by which the counter will be decreasedCopyright © 2018 The Apache Software Foundation. All rights reserved.