public interface CurrencyBook
Java interface specifies a currency book that keeps the currencies available in your client application;
The currency list can be updated by the instances of the connected SAP CC Core Server system.| Modifier and Type | Method and Description |
|---|---|
void |
addCurrency(Currency currency)
Deprecated.
The client cannot update the list of currencies (Can return an UnsupportedOperationException).
|
java.util.Vector<Currency> |
getCurrencies()
Returns all the current currencies that can be used in your client
application.
|
Currency |
getCurrency(int code)
Deprecated.
The ISO digit code is not stored and cannot be returned. Returns null.
|
Currency |
getCurrency(java.lang.String code)
Returns a currency from a specified code.
|
Currency |
getCurrency(java.lang.String iso4217code,
int precision)
Returns a currency from a given ISO 4217 code and with a precision greater or equal to the given precision;
If there is no currency a given ISO 4217 code for with a precision greater or equal to the given precision, return null.
|
java.util.Vector<Currency> getCurrencies()
Currency getCurrency(java.lang.String code)
code - The code of the currencyCurrency getCurrency(java.lang.String iso4217code, int precision)
iso4217code - The ISO 4217 code of the currencyprecision - The minimum precision of the currency@Deprecated Currency getCurrency(int code)
code - The ISO 4217 three-digit currency code@Deprecated void addCurrency(Currency currency)
currency - The currency to be added