public abstract class SynchronizedCounter extends Object
| Constructor and Description | 
|---|
| SynchronizedCounter() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract int | increment()Adds 1 to the counter. | 
| abstract int | peek()Peek at the counter | 
| abstract int | reset()Reset the counter to 0, returning its previous value. | 
public SynchronizedCounter()
public abstract int reset()
public abstract int increment()
public abstract int peek()