public class BasicCalculatorClientResultBean
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
BasicCalculatorClientResultBean() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String result
public java.lang.String operation
public java.lang.String operand1
public java.lang.String operand2
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()