Lines Matching refs:currency

433      * Returns the string denoting the local currency.
434 * @return the local currency String.
442 * Sets the string denoting the local currency.
443 * @param currency the local currency String.
446 public void setCurrencySymbol(String currency) {
447 currencySymbol = currency;
451 * Returns the international string denoting the local currency.
452 * @return the international string denoting the local currency
460 * Sets the international string denoting the local currency.
461 * @param currency the international string denoting the local currency.
464 public void setInternationalCurrencySymbol(String currency) {
465 intlCurrencySymbol = currency;
469 * Returns the currency symbol, for JDK 1.4 compatibility only.
471 * @return the currency used, or null
475 return currency;
479 * Sets the currency.
481 * <p><strong>Note:</strong> ICU does not use the DecimalFormatSymbols for the currency
484 * <p>This also sets the currency symbol attribute to the currency's symbol
485 * in the DecimalFormatSymbols' locale, and the international currency
486 * symbol attribute to the currency's ISO 4217 currency code.
488 * @param currency the new currency to be used
489 * @throws NullPointerException if <code>currency</code> is null
495 public void setCurrency(Currency currency) {
496 if (currency == null) {
499 this.currency = currency;
500 intlCurrencySymbol = currency.getCurrencyCode();
501 currencySymbol = currency.getSymbol(requestedLocale);
524 * @return String currency pattern string
662 * {@icu} Indicates the currency match pattern used in {@link #getPatternForCurrencySpacing}.
684 * {@icu} Returns the desired currency spacing value. Original values come from ICU's
686 * values govern what and when text is inserted between a currency code/name/symbol
687 * and the currency amount when formatting money.
705 throw new IllegalArgumentException("unknown currency spacing: " + itemType);
714 * {@icu} Sets the indicated currency spacing pattern or value. See {@link
717 * <p>Values for currency match and surrounding match must be {@link
724 * @param beforeCurrency true if the pattern is for before the currency symbol.
733 throw new IllegalArgumentException("unknown currency spacing: " + itemType);
968 // Obtain currency data from the currency API. This is strictly
970 // for currency data anymore.
972 currency = Currency.getInstance(locale);
973 if (currency != null) {
974 intlCurrencySymbol = currency.getCurrencyCode();
976 currname = currency.getName(locale, Currency.SYMBOL_NAME, isChoiceFormat);
977 // If this is a ChoiceFormat currency, then format an
990 currencySymbol = "\u00A4"; // 'OX' currency symbol
994 // Get currency spacing data.
1087 currency = Currency.getInstance(intlCurrencySymbol);
1183 * String denoting the local currency, e.g. "$".
1190 * International string denoting the local currency, e.g. "USD".
1197 * The decimal separator used when formatting currency values.
1204 * The decimal separator used when formatting currency values.
1400 private transient Currency currency;