|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectkiwi.util.HolderObject
kiwi.util.IntegerHolder
kiwi.util.Counter
An integer counter object.
Field Summary |
Fields inherited from class kiwi.util.IntegerHolder |
value |
Fields inherited from class kiwi.util.HolderObject |
subtype |
Constructor Summary | |
Counter()
Construct a new Counter with an initial value of 0. |
|
Counter(int value)
Construct a new Counter with a specified initial value. |
Method Summary | |
void |
decrement()
Decrement the counter by 1. |
void |
increment()
Increment the counter by 1. |
Methods inherited from class kiwi.util.IntegerHolder |
compareTo, getValue, setValue, toString |
Methods inherited from class kiwi.util.HolderObject |
getSubtype, setSubtype |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Counter(int value)
Counter
with a specified initial value.
value
- The initial value.public Counter()
Counter
with an initial value of 0.
Method Detail |
public final void increment()
public final void decrement()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |