|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.utils.count.Counter
public final class Counter
A counter.
Constructor Summary | |
---|---|
Counter()
|
Method Summary | |
---|---|
void |
add(int i)
Add i to the counter. |
void |
clear()
Clear the counter. |
void |
decrement()
Decrement the counter of 1. |
int |
getValue()
Return the current value of the counter. |
void |
increment()
Increment the counter of 1. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Counter()
Method Detail |
---|
public int getValue()
public void increment()
public void decrement()
public void add(int i)
i
- The value to add.public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |