| Modifier and Type | Method and Description |
|---|---|
void |
dec()
Decrement the counter by one.
|
void |
dec(long n)
Decrement the counter by
n. |
long |
getCount()
Returns the counter's current value.
|
void |
inc()
Increment the counter by one.
|
void |
inc(long n)
Increment the counter by
n. |
void inc()
void inc(long n)
n.n - the amount by which the counter will be increasedvoid dec()
void dec(long n)
n.n - the amount by which the counter will be decreased