| Modifier and Type | Field and Description |
|---|---|
protected Counter |
counter
The wrapped counter
|
private static long |
serialVersionUID
The serialVersionUID
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Return a cloned copy of this object.
|
int |
decrement()
Decrement the counter.
|
boolean |
equals(java.lang.Object obj)
Check if the given object is equal to this.
|
int |
getCount()
Return the current value of the counter.
|
int |
increment()
Increment the counter.
|
void |
reset()
Reset the counter to zero.
|
java.lang.String |
toString()
Return a string representation of this.
|
makeDirectional, makeSynchronizedprivate static final long serialVersionUID
protected final Counter counter
public Wrapper(Counter counter)
public int increment()
Counterpublic int decrement()
Counterpublic int getCount()
Counterpublic void reset()
Counterpublic boolean equals(java.lang.Object obj)
Counterpublic java.lang.String toString()
Counter