|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Counter
Defines a simple counter.
A counter is always greater or equal to zero and can only increase.
| Method Summary | |
|---|---|
long |
get()
Returns the value of this counter. |
long |
increment()
Increments this counter by one. |
long |
increment(int i)
Increments this counter by a given integer value. |
long |
increment(long l)
Increments this counter by a given long value. |
void |
reset()
Resets this counter to zero. |
| Methods inherited from interface net.coalevo.foundation.model.Identifiable |
|---|
getIdentifier |
| Method Detail |
|---|
long increment()
long increment(int i)
i - the increment to be added to the counter.
long increment(long l)
l - the increment to be added to the counter.
long get()
void reset()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||