|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.currency.CurrencyMapBook
public class CurrencyMapBook
A CurrencyMapBook keeps the currencies that can be used in an
application. Currencies are stored in a property resources.
| Constructor Summary | |
|---|---|
CurrencyMapBook(java.util.Collection<Currency> currencies)
Initializes a new property currency book from a currency list |
|
| Method Summary | |
|---|---|
void |
addCurrency(Currency currency)
Adds a currency in the currency book. |
java.util.Vector<Currency> |
getCurrencies()
Returns all the current currencies that can be used in your client application. |
Currency |
getCurrency(int code)
Returns a currency from a given ISO 4217 code. |
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. |
int |
size()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CurrencyMapBook(java.util.Collection<Currency> currencies)
currencies - The currency list| Method Detail |
|---|
public void addCurrency(Currency currency)
CurrencyBook
addCurrency in interface CurrencyBookcurrency - The currency to be addedpublic java.util.Vector<Currency> getCurrencies()
CurrencyBook
getCurrencies in interface CurrencyBookpublic Currency getCurrency(java.lang.String code)
CurrencyBook
getCurrency in interface CurrencyBookcode - The code of the currency
public Currency getCurrency(java.lang.String iso4217code,
int precision)
CurrencyBook
getCurrency in interface CurrencyBookiso4217code - The ISO 4217 code of the currencyprecision - The minimum precision of the currency
public Currency getCurrency(int code)
CurrencyBook
getCurrency in interface CurrencyBookcode - The ISO 4217 three-digit currency code
public int size()
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||