java.lang.Objectcom.ibm.commerce.price.utils.UnitAmount
Abstract base class that represents a unit amount.
Constructor Summary | |
protected | UnitAmount(java.lang.Object aValue, java.lang.String aUnit) Constructs a unit amount from a value and unit. |
Method Summary | |
protected abstract UnitAmount | createNewUnitAmount(java.lang.Object aValue, java.lang.String aUnit) Create a new unit amount from the parameters. |
protected java.lang.String | getUnit() Get the units of the unit amount. |
protected java.lang.Object | getValueI() Get the value of the unit amount. |
protected void | setUnit(java.lang.String newUnit) Set the units. |
protected void | setValue(java.lang.Object aValue) Set the value of the unit amount. |
java.lang.String | toString() Convert to a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected UnitAmount(java.lang.Object aValue, java.lang.String aUnit)
Method Detail |
protected abstract UnitAmount createNewUnitAmount(java.lang.Object aValue, java.lang.String aUnit)
protected java.lang.String getUnit()
protected java.lang.Object getValueI()
protected void setUnit(java.lang.String newUnit)
protected void setValue(java.lang.Object aValue)
public java.lang.String toString()
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.