|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIncrement
public class Increment
Fig. 8.15: Increment.java
Constructor Summary | |
---|---|
Increment(int incrementValue)
constructor initializes final instance variable INCREMENT |
Method Summary | |
---|---|
void |
addIncrementToTotal()
add INCREMENT to total |
java.lang.String |
toString()
return String representation of an Increment object's data |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Increment(int incrementValue)
incrementValue
- the value to increment the counterMethod Detail |
---|
public void addIncrementToTotal()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |