Uses of Class
java.util.Currency
Packages that useCurrency
Package
Description
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
Uses ofCurrency injava.text
Modifier and TypeMethodDescriptionDecimalFormat.getCurrency()Gets the currency used by this decimal format when formatting currency values.DecimalFormatSymbols.getCurrency()Gets the currency of these DecimalFormatSymbols.NumberFormat.getCurrency()Gets the currency used by this number format when formatting currency values.Modifier and TypeMethodDescriptionvoidDecimalFormat.setCurrency(Currency currency) Sets the currency used by this number format when formatting currency values.voidDecimalFormatSymbols.setCurrency(Currency currency) Sets the currency of these DecimalFormatSymbols.voidNumberFormat.setCurrency(Currency currency) Sets the currency used by this number format when formatting currency values.Uses ofCurrency injava.util
Modifier and TypeMethodDescriptionstaticCurrencyCurrency.getInstance(String currencyCode) Returns theCurrencyinstance for the given currency code.staticCurrencyCurrency.getInstance(Locale locale) Returns theCurrencyinstance for the country of the given locale.Modifier and TypeMethodDescriptionCurrency.getAvailableCurrencies()Gets the set of available currencies.