|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.technologysamples.basiccalcclient.common.BasicCalculatorClientResultBean
public class BasicCalculatorClientResultBean
Field Summary | |
---|---|
java.lang.String |
operand1
A number to perform this mathematical operation on |
java.lang.String |
operand2
Another number to perform this mathematical operation on |
java.lang.String |
operation
The mathematical operation to be performed |
java.lang.String |
result
The value of the mathematical operation performed |
Constructor Summary | |
---|---|
BasicCalculatorClientResultBean()
|
Method Summary | |
---|---|
java.lang.String |
getOperand1()
Returns the value of the first operand |
java.lang.String |
getOperand2()
Returns the value of the second operand |
java.lang.String |
getOperation()
Returns the value of the operation as a symbol +, -, *, / |
java.lang.String |
getResult()
Returns the value of result (from the mathematical operation performed) |
void |
setOperand1(double d)
Sets the value of operand1. |
void |
setOperand2(double d)
Sets the value of operand2. |
void |
setOperation(java.lang.String s)
Sets the value of operation by converting the name of the operation to its mathematical symbol. |
void |
setResult(double d)
Sets the value of result. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String result
public java.lang.String operation
public java.lang.String operand1
public java.lang.String operand2
Constructor Detail |
---|
public BasicCalculatorClientResultBean()
Method Detail |
---|
public void setResult(double d)
d
- the double to be converted to a String and set as the value of resultpublic java.lang.String getResult()
public void setOperation(java.lang.String s)
s
- the name of the operationpublic java.lang.String getOperation()
public void setOperand1(double d)
d
- the double to be converted to a String and set as the value of operand1public java.lang.String getOperand1()
public void setOperand2(double d)
d
- the double to be converted to a String and set as the value of operand2public java.lang.String getOperand2()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |