Lines Matching defs:currency

311      * Returns the currency symbol for the currency of these
321 * Sets the currency symbol for the currency of these
325 public void setCurrencySymbol(String currency)
327 currencySymbol = currency;
331 * Returns the ISO 4217 currency code of the currency of these
341 * Sets the ISO 4217 currency code of the currency of these
343 * If the currency code is valid (as defined by
345 * this also sets the currency attribute to the corresponding Currency
346 * instance and the currency symbol attribute to the currency's symbol
347 * in the DecimalFormatSymbols' locale. If the currency code is not valid,
348 * then the currency attribute is set to null and the currency symbol
358 currency = null;
361 currency = Currency.getInstance(currencyCode);
362 currencySymbol = currency.getSymbol();
369 * Gets the currency of these DecimalFormatSymbols. May be null if the
370 * currency symbol attribute was previously set to a value that's not
371 * a valid ISO 4217 currency code.
373 * @return the currency used, or null
377 return currency;
381 * Sets the currency of these DecimalFormatSymbols.
382 * This also sets the currency symbol attribute to the currency's symbol
383 * in the DecimalFormatSymbols' locale, and the international currency
384 * symbol attribute to the currency's ISO 4217 currency code.
386 * @param currency the new currency to be used
387 * @exception NullPointerException if <code>currency</code> is null
392 public void setCurrency(Currency currency) {
393 if (currency == null) {
396 this.currency = currency;
397 intlCurrencySymbol = currency.getCurrencyCode();
398 currencySymbol = currency.getSymbol(locale);
506 currency == other.currency &&
560 // Try to obtain the currency used in the locale's country.
566 currency = Currency.getInstance(locale);
571 if (currency != null) {
572 intlCurrencySymbol = currency.getCurrencyCode();
576 currencySymbol = currency.getSymbol(locale);
585 currency = Currency.getInstance(intlCurrencySymbol);
613 * Initializes the currency from the intlCurrencySymbol field.
638 currency = Currency.getInstance(intlCurrencySymbol);
722 * String denoting the local currency, e.g. "$".
729 * ISO 4217 currency code denoting the local currency, e.g. "USD".
736 * The decimal separator used when formatting currency values.
769 * The locale of these currency format symbols.
776 // currency; only the ISO code is serialized.
777 private transient Currency currency;