Searched defs:currency (Results 1 - 4 of 4) sorted by relevance
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | DecimalFormatTest.java | 264 // Confirm the fraction digits do not change when the currency is changed. 279 // Changing the currency must not reset the digits. 286 // Confirm the currency symbol used by a format is determined by the locale of the format 289 Currency currency = Currency.getInstance("CNY"); 292 String locale1Symbol = currency.getSymbol(locale1); 293 String locale2Symbol = currency.getSymbol(locale2); 302 formatArbitraryCurrencyAmountInLocale(currency, locale2); 306 formatArbitraryCurrencyAmountInLocale(currency, locale2); 316 private String formatArbitraryCurrencyAmountInLocale(Currency currency, Locale locale) { argument 318 localeCurrencyFormat.setCurrency(currency); [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | DecimalFormatSymbols.java | 56 private transient Currency currency; field in class:DecimalFormatSymbols 104 currency = Currency.getInstance(locale); 105 currencySymbol = currency.getSymbol(locale); 106 intlCurrencySymbol = currency.getCurrencyCode(); 108 currency = Currency.getInstance("XXX"); 179 return currency.equals(obj.currency) && 199 "[currency=" + currency + 218 * Returns the currency 405 setCurrency(Currency currency) argument [all...] |
H A D | DecimalFormat.java | 38 * percentages ("12%"), and currency amounts ("$123"). All of these flavors can 91 * special status. Two exceptions are the currency sign and quote, which are not 175 * <td>Currency sign, replaced by currency symbol. If doubled, replaced by 176 * international currency symbol. If present in a pattern, the monetary decimal 719 * Returns the currency used by this decimal format. 721 * @return the currency used by this decimal format. 898 * Sets the currency used by this decimal format. The min and max fraction 902 public void setCurrency(Currency currency) { argument 903 Currency instance = Currency.getInstance(currency.getCurrencyCode()); 905 ndf.setCurrency(symbols.getCurrencySymbol(), currency [all...] |
H A D | NumberFormat.java | 88 * {@link #getCurrencyInstance} to get the currency number format, and 321 * Returns the currency used by this number format. 324 * concrete subclasses should override this method if they support currency 328 * @return the currency that was set in getInstance() or in setCurrency(), 337 * Returns a {@code NumberFormat} for formatting and parsing currency values 341 * @return a {@code NumberFormat} for handling currency values. 348 * Returns a {@code NumberFormat} for formatting and parsing currency values 353 * @return a {@code NumberFormat} for handling currency values. 595 * Sets the currency used by this number format when formatting currency 606 setCurrency(Currency currency) argument [all...] |
Completed in 93 milliseconds