|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mss.ea.stat.IntegerCounter
Integer counter.
Field Summary | |
protected int |
value
Current value of the counter. |
Constructor Summary | |
IntegerCounter()
Constructor. |
Method Summary | |
void |
dec()
Decrements the counter by 1. |
void |
dec(int amount)
Decrements the counter by the given amount. |
void |
inc()
Increments the counter by 1. |
void |
inc(int amount)
Increments the counter by the given amount. |
int |
intValue()
Gets the current value of the counter as an integer number. |
long |
longValue()
Returns the counter value as a long integer. |
void |
reset()
Resets the counter. |
java.lang.String |
toString()
Returns a string representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int value
Constructor Detail |
public IntegerCounter()
Method Detail |
public void dec()
dec
in interface Counter
public void dec(int amount)
amount
- decrementpublic void inc()
inc
in interface Counter
public void inc(int amount)
amount
- incrementpublic void reset()
reset
in interface Counter
public int intValue()
public long longValue()
longValue
in interface Counter
public java.lang.String toString()
toString
in class java.lang.Object
|
eaLib API Docs Last Modified : January 7 2002 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |