Lines Matching refs:currencyCode
85 private final String currencyCode;
268 private Currency(String currencyCode, int defaultFractionDigits, int numericCode) {
269 this.currencyCode = currencyCode;
277 * @param currencyCode the ISO 4217 code of the currency
279 * @exception NullPointerException if <code>currencyCode</code> is null
280 * @exception IllegalArgumentException if <code>currencyCode</code> is not
283 public static Currency getInstance(String currencyCode) {
284 return getInstance(currencyCode, Integer.MIN_VALUE, 0);
287 private static Currency getInstance(String currencyCode, int defaultFractionDigits,
292 // Also, if there already is an entry, the currencyCode must be valid.
293 Currency instance = instances.get(currencyCode);
302 if (currencyCode.length() != 3) {
305 char char1 = currencyCode.charAt(0);
306 char char2 = currencyCode.charAt(1);
310 && currencyCode.charAt(2) - 'A' == (tableEntry & SIMPLE_CASE_COUNTRY_FINAL_CHAR_MASK)) {
315 if (currencyCode.charAt(2) == '-') {
318 int index = otherCurrencies.indexOf(currencyCode);
327 instance = new Currency(currencyCode, defaultFractionDigits, numericCode);
328 instances.put(currencyCode, instance);
447 return currencyCode;
489 currencyCode, SYMBOL);
496 return bundle.getString(currencyCode);
499 return currencyCode;
553 String bundleKey = currencyCode.toLowerCase(Locale.ROOT);
562 locale, bundleKey, bundle, currencyCode, DISPLAYNAME);
577 return currencyCode;
586 return currencyCode;
593 return getInstance(currencyCode);