public class Counter extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Counter.ThreadSafeCounter |
static class |
Counter.ThresholdCounter |
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
| Constructor and Description |
|---|
Counter() |
| Modifier and Type | Method and Description |
|---|---|
int |
dec() |
int |
dec(int i) |
int |
getCount() |
int |
inc() |
int |
inc(int i) |
void |
reset() |