|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Counter
Represents an atomic counter that can be increased and decreased in value.
Method Summary | |
---|---|
Counter |
decrease()
Decrease the counter by one. |
Counter |
decrease(long amount)
Decrease the counter by the specified amount. |
Counter |
increase()
Increase the counter by one. |
Counter |
increase(long amount)
Increase the counter by the specified amount. |
Method Detail |
---|
Counter increase()
Counter increase(long amount)
amount
- the amount to increase the counter by
Counter decrease()
Counter decrease(long amount)
amount
- the amount to decrease the counter by
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |