| This class represents a currency
javax.measure.unit.Unit Unit .
Currencies are a special form of
DerivedUnit , conversions
between currencies is possible if their respective exchange rates
have been set and the conversion factor can be changed dynamically.
Quantities stated in
Currency are usually instances of
Money .
By default, the label associated to a currency is its ISO-4217 code
(see the ISO 4217
maintenance agency for a table of currency codes). An application may
change this default using the
javax.measure.unit.UnitFormat.labelUnitFormat.label(String) method.
For example:[code]
UnitFormat.getStandardInstance().label(Currency.EUR, "€");
UnitFormat.getStandardInstance().label(Currency.GBP, "£");
UnitFormat.getStandardInstance().label(Currency.JPY, "¥");
UnitFormat.getStandardInstance().label(Currency.USD, "$");
[/code]
author: Jean-Marie Dautelle version: 3.0, February 13, 2006 See Also: Currency.setExchangeRate |