public abstract class SimpleCounter extends Object implements Counter
| Constructor and Description |
|---|
SimpleCounter() |
| Modifier and Type | Method and Description |
|---|---|
void |
dec()
Decrement the current count by 1.
|
void |
dec(long n)
Decrement the current count by n.
|
long |
getCount()
Returns the current count.
|
void |
inc()
Increment the current count by 1.
|
void |
inc(long n)
Increment the current count by n.
|
public void inc()
Counterpublic void inc(long n)
Counterpublic void dec()
Counterpublic void dec(long n)
CounterCopyright © 2024 Alibaba Cloud Computing. All rights reserved.