Searched refs:currency (Results 1 - 11 of 11) sorted by relevance

/openjdk7/jdk/test/java/util/Currency/
H A DBug4512215.java26 * @summary Updated currency data.
52 Currency currency = Currency.getInstance(new Locale("", country));
53 if (!currency.getCurrencyCode().equals(currencyCode)) {
56 + "; got: " + currency.getCurrencyCode());
61 Currency currency = Currency.getInstance(currencyCode);
62 if (currency.getDefaultFractionDigits() != digits) {
65 + "; got: " + currency.getDefaultFractionDigits());
H A DValidateISO4217.java33 * data and and Java's currency data which is based on ISO 4217.
34 * If there is a difference, the following file which includes currency data
41 * From BSi's ISO4217 data (TABLE A1.doc), extract four (or eight, if currency is changing)
131 String currency;
136 currency = "";
140 currency = tokens.nextToken();
143 testCurrencies.add(Currency.getInstance(currency));
154 currency = tokens.nextToken();
157 testCurrencies.add(Currency.getInstance(currency));
162 testCountryCurrency(country, currency, Intege
[all...]
H A DPropertiesTest.sh5 # @summary tests the capability of replacing the currency data with user
6 # specified currency properties file
82 cp ${TESTSRC}${FS}currency.properties $PROPLOCATION
116 rm -f ${PROPLOCATION}${FS}currency.properties
H A DCurrencyTest.java73 throw new RuntimeException("Didn't get same instance for same currency code");
83 Currency currency = Currency.getInstance(currencyCode);
93 // very basic test: most countries have their own currency, and then
94 // their currency code is an extension of their country code.
112 Currency currency = Currency.getInstance(locale);
113 if (currency.getCurrencyCode().indexOf(locale.getCountry()) == 0) {
121 throw new RuntimeException("suspicious: not enough countries have their own currency.");
131 // check currency changes
151 // check a country code which doesn't have a currency
168 Currency currency
[all...]
/openjdk7/jdk/src/share/classes/java/text/
H A DDecimalFormatSymbols.java311 * 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) argument
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 o
392 setCurrency(Currency currency) argument
777 private transient Currency currency; field in class:DecimalFormatSymbols
[all...]
H A DDecimalFormat.java64 * currency amounts ($123). All of these can be localized.
169 * their special status. Two exceptions are the currency sign and quote, which
230 * <td>Currency sign, replaced by currency symbol. If
231 * doubled, replaced by international currency symbol.
338 * <strong>// Print out a number using the localized number, integer, currency,
2002 * currency code. Any other character after a QUOTE represents itself.
2050 * currency code. Any other character after a QUOTE represents itself.
2382 // percent, per mille, and currency symbols are recognized and
2425 // Use lookahead to determine if the currency sign
2792 * Gets the currency use
2817 setCurrency(Currency currency) argument
[all...]
H A DNumberFormat.java108 * currency number format. And use <code>getPercentInstance</code> to get a
443 * Returns a currency format for the current default locale.
450 * Returns a currency format for the specified locale.
669 * Gets the currency used by this number format when formatting
670 * currency values. The initial value is derived in a locale dependent
672 * currency could be determined and no currency has been set using
678 * @return the currency used by this number format, or <code>null</code>
680 * doesn't implement currency formatting
688 * Sets the currency use
701 setCurrency(Currency currency) argument
[all...]
/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/
H A DNumberFormatProviderImpl.java53 "\u00A4#,##0{0};-\u00A4#,##0{1}", // currency pattern
129 * are reasonable for the currency's default fraction digits.
133 Currency currency = dfs.getCurrency();
134 if (currency == null) {
136 currency = Currency.getInstance(dfs.getInternationalCurrencySymbol());
140 if (currency != null) {
141 int digits = currency.getDefaultFractionDigits();
/openjdk7/jdk/test/java/util/PluggableLocale/
H A DNumberFormatProviderTest.java149 * are reasonable for the currency's default fraction digits.
153 Currency currency = dfs.getCurrency();
154 if (currency == null) {
156 currency = Currency.getInstance(dfs.getInternationalCurrencySymbol());
160 if (currency != null) {
161 int digits = currency.getDefaultFractionDigits();
189 "num={0,number,currency}",
/openjdk7/jdk/src/share/classes/javax/sql/rowset/
H A DRowSetMetaDataImpl.java221 colInfo[columnIndex].currency = property;
555 return colInfo[columnIndex].currency;
969 public boolean currency; field in class:RowSetMetaDataImpl.ColInfo
/openjdk7/jdk/make/java/java/
H A DMakefile331 # Rules to create lib/currency.data
334 CURDATA = $(LIBDIR)/currency.data

Completed in 54 milliseconds