Java Doc for Currency.java in  » 6.0-JDK-Modules » j2me » java » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » java.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.util.Currency

Currency
final public class Currency implements Serializable(Code)
Represents a currency. Currencies are identified by their ISO 4217 currency codes. See the ISO 4217 maintenance agency for more information, including a table of currency codes.

The class is designed so that there's never more than one Currency instance for any given currency. Therefore, there's no public constructor. You obtain a Currency instance using the getInstance methods.
version:
   1.7, 10/10/06
since:
   1.4



Field Summary
static  StringmainTable
    
static  StringotherCurrencies
    
static  int[]otherCurrenciesDFD
    
static  long[]scCutOverTimes
    
static  String[]scNewCurrencies
    
static  int[]scNewCurrenciesDFD
    
static  String[]scOldCurrencies
    
static  int[]scOldCurrenciesDFD
    


Method Summary
public  StringgetCurrencyCode()
     Gets the ISO 4217 currency code of this currency.
public  intgetDefaultFractionDigits()
     Gets the default number of fraction digits used with this currency.
public static  CurrencygetInstance(String currencyCode)
     Returns the Currency instance for the given currency code.
public static  CurrencygetInstance(Locale locale)
     Returns the Currency instance for the country of the given locale.
public  StringgetSymbol()
     Gets the symbol of this currency for the default locale. For example, for the US Dollar, the symbol is "$" if the default locale is the US, while for other locales it may be "US$".
public  StringgetSymbol(Locale locale)
     Gets the symbol of this currency for the specified locale. For example, for the US Dollar, the symbol is "$" if the specified locale is the US, while for other locales it may be "US$".
public  StringtoString()
     Returns the ISO 4217 currency code of this currency.

Field Detail
mainTable
static String mainTable(Code)



otherCurrencies
static String otherCurrencies(Code)



otherCurrenciesDFD
static int[] otherCurrenciesDFD(Code)



scCutOverTimes
static long[] scCutOverTimes(Code)



scNewCurrencies
static String[] scNewCurrencies(Code)



scNewCurrenciesDFD
static int[] scNewCurrenciesDFD(Code)



scOldCurrencies
static String[] scOldCurrencies(Code)



scOldCurrenciesDFD
static int[] scOldCurrenciesDFD(Code)





Method Detail
getCurrencyCode
public String getCurrencyCode()(Code)
Gets the ISO 4217 currency code of this currency. the ISO 4217 currency code of this currency.



getDefaultFractionDigits
public int getDefaultFractionDigits()(Code)
Gets the default number of fraction digits used with this currency. For example, the default number of fraction digits for the Euro is 2, while for the Japanese Yen it's 0. In the case of pseudo-currencies, such as IMF Special Drawing Rights, -1 is returned. the default number of fraction digits used with this currency



getInstance
public static Currency getInstance(String currencyCode)(Code)
Returns the Currency instance for the given currency code.
Parameters:
  currencyCode - the ISO 4217 code of the currency the Currency instance for the given currency code
exception:
  NullPointerException - if currencyCode is null
exception:
  IllegalArgumentException - if currencyCode is nota supported ISO 4217 code.



getInstance
public static Currency getInstance(Locale locale)(Code)
Returns the Currency instance for the country of the given locale. The language and variant components of the locale are ignored. The result may vary over time, as countries change their currencies. For example, for the original member countries of the European Monetary Union, the method returns the old national currencies until December 31, 2001, and the Euro from January 1, 2002, local time of the respective countries.

The method returns null for territories that don't have a currency, such as Antarctica.
Parameters:
  locale - the locale for whose country a Currencyinstance is needed the Currency instance for the country of the givenlocale, or null
exception:
  NullPointerException - if locale or its countrycode is null
exception:
  IllegalArgumentException - if the country of the given localeis not a supported ISO 3166 country code.




getSymbol
public String getSymbol()(Code)
Gets the symbol of this currency for the default locale. For example, for the US Dollar, the symbol is "$" if the default locale is the US, while for other locales it may be "US$". If no symbol can be determined, the ISO 4217 currency code is returned. the symbol of this currency for the default locale



getSymbol
public String getSymbol(Locale locale)(Code)
Gets the symbol of this currency for the specified locale. For example, for the US Dollar, the symbol is "$" if the specified locale is the US, while for other locales it may be "US$". If no symbol can be determined, the ISO 4217 currency code is returned.
Parameters:
  locale - the locale for which a display name for this currency isneeded the symbol of this currency for the specified locale
exception:
  NullPointerException - if locale is null



toString
public String toString()(Code)
Returns the ISO 4217 currency code of this currency. the ISO 4217 currency code of this currency



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.