|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object example.uniquery.Sum
public final class Sum
A sample JavaBean that can be loaded into the uniquery
example program
. Sum adds two integers, A and B.
Constructor Summary | |
---|---|
Sum()
Creates a Sum JavaBean with all members initialized to zero. |
Method Summary | |
---|---|
void |
add()
Adds A and B and makes the result available via getSum() . |
int |
getA()
Returns the value of A. |
int |
getB()
Returns the value of B. |
int |
getSum()
Returns the sum of A and B produced by the last call of add() . |
void |
setA(int a)
Sets the value of A. |
void |
setB(int b)
Sets the value of B. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sum()
Method Detail |
---|
public void setA(int a)
a
- The new value of A.public int getA()
public void setB(int b)
b
- The new value of B.public int getB()
public void add()
getSum()
.
public int getSum()
add()
.
add()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |