Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Uses of Class
java.util.Currency

Packages that use Currency
Package Description
java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages. 
java.util Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array). 
 

Uses of Currency in java.text
 

Methods in java.text that return Currency
Modifier and Type Method and Description
 Currency DecimalFormatSymbols.getCurrency()
          Gets the currency of these DecimalFormatSymbols.
 Currency NumberFormat.getCurrency()
          Gets the currency used by this number format when formatting currency values.
 Currency DecimalFormat.getCurrency()
          Gets the currency used by this decimal format when formatting currency values.
 

Methods in java.text with parameters of type Currency
Modifier and Type Method and Description
 void DecimalFormatSymbols.setCurrency(Currency currency)
          Sets the currency of these DecimalFormatSymbols.
 void NumberFormat.setCurrency(Currency currency)
          Sets the currency used by this number format when formatting currency values.
 void DecimalFormat.setCurrency(Currency currency)
          Sets the currency used by this number format when formatting currency values.
 

Uses of Currency in java.util
 

Methods in java.util that return Currency
Modifier and Type Method and Description
static Currency Currency.getInstance(Locale locale)
          Returns the Currency instance for the country of the given locale.
static Currency Currency.getInstance(String currencyCode)
          Returns the Currency instance for the given currency code.
 

Methods in java.util that return types with arguments of type Currency
Modifier and Type Method and Description
static Set<Currency> Currency.getAvailableCurrencies()
          Gets the set of available currencies.
 


Java™ Platform
Standard Ed. 7

DRAFT ea-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.