java.lang.Objectcom.ibm.commerce.price.utils.UnitAmount
com.ibm.commerce.price.utils.QuantityAmount
A quantity amount.
Constructor Summary | |
QuantityAmount(double aValue, java.lang.String aQuantityUnit) Constructs a quantity amount from a numeric value and quantity unit. |
Method Summary | |
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. |
Methods inherited from class com.ibm.commerce.price.utils.UnitAmount |
getUnit, getValueI, setUnit, setValue, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QuantityAmount(double aValue, java.lang.String aQuantityUnit)
Method Detail |
protected UnitAmount createNewUnitAmount(java.lang.Object aValue, java.lang.String aUnit)
public java.lang.String getQuantityUnit()
public double getValue()
public void setValue(double aValue)
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.