public class QuantityAmount extends UnitAmount
Constructor and Description |
---|
QuantityAmount(double aValue, java.lang.String aQuantityUnit)
Constructs a quantity amount from a numeric value and quantity unit.
|
Modifier and Type | Method and Description |
---|---|
protected UnitAmount | createNewUnitAmount(java.lang.Object aValue, java.lang.String aUnit)
Create a new quantity amount from the parameters.
|
java.lang.String | getQuantityUnit()
Get the unit of the quantity amount.
|
double | getValue()
Get the numeric value of the quantity amount.
|
void | setValue(double aValue)
Set the numeric value of the quantity amount.
|
public QuantityAmount(double aValue, java.lang.String aQuantityUnit)
protected UnitAmount createNewUnitAmount(java.lang.Object aValue, java.lang.String aUnit)
public java.lang.String getQuantityUnit()
public double getValue()
public void setValue(double aValue)