public class CurrencyParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatCurrencyWithSymbol(java.lang.String currency,
java.lang.String amount)
Formats the currency as per currency.json code.
|
CurrencyDetails |
getCurrency(java.lang.String currencyCode) |
static CurrencyParser |
getInstance(android.content.Context context) |
java.util.HashMap<java.lang.String,LocaleDetails> |
getLocaleList() |
static java.lang.String |
getValueWithTruncateDecimals(java.lang.String value,
int noOfDecimals)
truncate decimals for given value
|
void |
setLocaleList() |
public static CurrencyParser getInstance(android.content.Context context)
public java.lang.String formatCurrencyWithSymbol(java.lang.String currency, java.lang.String amount)
currency
- Any currency symbol.amount
- Any valid number in decimal.public CurrencyDetails getCurrency(java.lang.String currencyCode)
public void setLocaleList()
public java.util.HashMap<java.lang.String,LocaleDetails> getLocaleList()
public static java.lang.String getValueWithTruncateDecimals(java.lang.String value, int noOfDecimals)
value
- Any value in string.noOfDecimals
- number of decimal to be truncate.