|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.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)
aValue
- the value of the amount.aUnit
- the unit of the amount.Method Detail |
protected abstract UnitAmount createNewUnitAmount(java.lang.Object aValue, java.lang.String aUnit)
aValue
- The value of the amount.aUnit
- The unit of the amount.protected java.lang.String getUnit()
protected java.lang.Object getValueI()
protected void setUnit(java.lang.String newUnit)
newUnit
- The units.protected void setValue(java.lang.Object aValue)
aValue
- the new value for the unit amount.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |