Interface CurrencyBook
- All Known Implementing Classes:
CurrencyBookNotifier, CurrencyMapBook, PropertyCurrencyBook
public interface CurrencyBook
This
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.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCurrency(Currency currency) Deprecated.The client cannot update the list of currencies (Can return an UnsupportedOperationException).Returns all the current currencies that can be used in your client application.getCurrency(int code) Deprecated.The ISO digit code is not stored and cannot be returned.getCurrency(String code) Returns a currency from a specified code.getCurrency(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.
-
Method Details
-
getCurrencies
-
getCurrency
-
getCurrency
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.- Parameters:
iso4217code- The ISO 4217 code of the currencyprecision- The minimum precision of the currency- Returns:
- The currency for this ISO 4217 code and precision or null
-
getCurrency
Deprecated.The ISO digit code is not stored and cannot be returned. Returns null.Returns a currency from a given ISO 4217 code.- Parameters:
code- The ISO 4217 three-digit currency code- Returns:
- The currency for this code
-
addCurrency
Deprecated.The client cannot update the list of currencies (Can return an UnsupportedOperationException).Adds a currency in the currency book.- Parameters:
currency- The currency to be added
-