public class AvgNumber extends CalcNumber
| Constructor and Description |
|---|
AvgNumber(double value)
Instantiates a new avg number.
|
AvgNumber(int value)
Instantiates a new avg number.
|
AvgNumber(String value)
Instantiates a new avg number.
|
| Modifier and Type | Method and Description |
|---|---|
Number |
calculate()
Calculate.
|
int |
getCount()
Gets the count.
|
double |
getSum()
Gets the sum.
|
void |
setCount(int count)
Sets the count.
|
void |
setSum(double sum)
Sets the sum.
|
compareTo, doubleValue, floatValue, intValue, longValue, toString, updatepublic AvgNumber(double value)
value - the valuepublic AvgNumber(int value)
value - the valuepublic AvgNumber(String value)
value - the valuepublic Number calculate()
CalcNumbercalculate in class CalcNumberpublic int getCount()
public double getSum()
public void setCount(int count)
count - the new countpublic void setSum(double sum)
sum - the new sumCopyright © 2010-2020 Toolsverse. All Rights Reserved.