public abstract class UnitAmount
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected | UnitAmount(java.lang.Object aValue, java.lang.String aUnit)
Constructs a unit amount from a value and unit.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected UnitAmount(java.lang.Object aValue, java.lang.String aUnit)
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()