Java Doc for DecimalFormatSymbols.java in  » 6.0-JDK-Modules » j2me » java » text » 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.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.text.DecimalFormatSymbols

DecimalFormatSymbols
final public class DecimalFormatSymbols implements Cloneable,Serializable(Code)
This class represents the set of symbols (such as the decimal separator, the grouping separator, and so on) needed by DecimalFormat to format numbers. DecimalFormat creates for itself an instance of DecimalFormatSymbols from its locale data. If you need to change any of these symbols, you can get the DecimalFormatSymbols object from your DecimalFormat and modify it.
See Also:   java.util.Locale
See Also:   DecimalFormat
version:
   1.39, 01/23/03
author:
   Mark Davis
author:
   Alan Liu


Field Summary
final static  longserialVersionUID
    

Constructor Summary
public  DecimalFormatSymbols()
     Create a DecimalFormatSymbols object for the default locale.
public  DecimalFormatSymbols(Locale locale)
     Create a DecimalFormatSymbols object for the given locale.

Method Summary
public  Objectclone()
     Standard override.
public  booleanequals(Object obj)
     Override equals.
public  CurrencygetCurrency()
     Gets the currency of these DecimalFormatSymbols.
public  StringgetCurrencySymbol()
     Returns the currency symbol for the currency of these DecimalFormatSymbols in their locale.
public  chargetDecimalSeparator()
     Gets the character used for decimal sign.
public  chargetDigit()
     Gets the character used for a digit in a pattern.
 chargetExponentialSymbol()
     Returns the character used to separate the mantissa from the exponent.
public  chargetGroupingSeparator()
     Gets the character used for thousands separator.
public  StringgetInfinity()
     Gets the string used to represent infinity.
public  StringgetInternationalCurrencySymbol()
     Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
public  chargetMinusSign()
     Gets the character used to represent minus sign.
public  chargetMonetaryDecimalSeparator()
     Returns the monetary decimal separator.
public  StringgetNaN()
     Gets the string used to represent "not a number".
public  chargetPatternSeparator()
     Gets the character used to separate positive and negative subpatterns in a pattern.
public  chargetPerMill()
     Gets the character used for mille percent sign.
public  chargetPercent()
     Gets the character used for percent sign.
public  chargetZeroDigit()
     Gets the character used for zero.
public  inthashCode()
     Override hashCode.
public  voidsetCurrency(Currency currency)
     Sets the currency of these DecimalFormatSymbols.
public  voidsetCurrencySymbol(String currency)
     Sets the currency symbol for the currency of these DecimalFormatSymbols in their locale.
public  voidsetDecimalSeparator(char decimalSeparator)
     Sets the character used for decimal sign.
public  voidsetDigit(char digit)
     Sets the character used for a digit in a pattern.
 voidsetExponentialSymbol(char exp)
     Sets the character used to separate the mantissa from the exponent.
public  voidsetGroupingSeparator(char groupingSeparator)
     Sets the character used for thousands separator.
public  voidsetInfinity(String infinity)
     Sets the string used to represent infinity.
public  voidsetInternationalCurrencySymbol(String currencyCode)
     Sets the ISO 4217 currency code of the currency of these DecimalFormatSymbols. If the currency code is valid (as defined by java.util.Currency.getInstance(java.lang.String) Currency.getInstance ), this also sets the currency attribute to the corresponding Currency instance and the currency symbol attribute to the currency's symbol in the DecimalFormatSymbols' locale.
public  voidsetMinusSign(char minusSign)
     Sets the character used to represent minus sign.
public  voidsetMonetaryDecimalSeparator(char sep)
     Sets the monetary decimal separator.
public  voidsetNaN(String NaN)
     Sets the string used to represent "not a number".
public  voidsetPatternSeparator(char patternSeparator)
     Sets the character used to separate positive and negative subpatterns in a pattern.
public  voidsetPerMill(char perMill)
     Sets the character used for mille percent sign.
public  voidsetPercent(char percent)
     Sets the character used for percent sign.
public  voidsetZeroDigit(char zeroDigit)
     Sets the character used for zero.

Field Detail
serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
DecimalFormatSymbols
public DecimalFormatSymbols()(Code)
Create a DecimalFormatSymbols object for the default locale.



DecimalFormatSymbols
public DecimalFormatSymbols(Locale locale)(Code)
Create a DecimalFormatSymbols object for the given locale.
exception:
  NullPointerException - if locale is null




Method Detail
clone
public Object clone()(Code)
Standard override.



equals
public boolean equals(Object obj)(Code)
Override equals.



getCurrency
public Currency getCurrency()(Code)
Gets the currency of these DecimalFormatSymbols. May be null if the currency symbol attribute was previously set to a value that's not a valid ISO 4217 currency code. the currency used, or null
since:
   1.4



getCurrencySymbol
public String getCurrencySymbol()(Code)
Returns the currency symbol for the currency of these DecimalFormatSymbols in their locale.
since:
   1.2



getDecimalSeparator
public char getDecimalSeparator()(Code)
Gets the character used for decimal sign. Different for French, etc.



getDigit
public char getDigit()(Code)
Gets the character used for a digit in a pattern.



getExponentialSymbol
char getExponentialSymbol()(Code)
Returns the character used to separate the mantissa from the exponent.



getGroupingSeparator
public char getGroupingSeparator()(Code)
Gets the character used for thousands separator. Different for French, etc.



getInfinity
public String getInfinity()(Code)
Gets the string used to represent infinity. Almost always left unchanged.



getInternationalCurrencySymbol
public String getInternationalCurrencySymbol()(Code)
Returns the ISO 4217 currency code of the currency of these DecimalFormatSymbols.
since:
   1.2



getMinusSign
public char getMinusSign()(Code)
Gets the character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format.



getMonetaryDecimalSeparator
public char getMonetaryDecimalSeparator()(Code)
Returns the monetary decimal separator.
since:
   1.2



getNaN
public String getNaN()(Code)
Gets the string used to represent "not a number". Almost always left unchanged.



getPatternSeparator
public char getPatternSeparator()(Code)
Gets the character used to separate positive and negative subpatterns in a pattern.



getPerMill
public char getPerMill()(Code)
Gets the character used for mille percent sign. Different for Arabic, etc.



getPercent
public char getPercent()(Code)
Gets the character used for percent sign. Different for Arabic, etc.



getZeroDigit
public char getZeroDigit()(Code)
Gets the character used for zero. Different for Arabic, etc.



hashCode
public int hashCode()(Code)
Override hashCode.



setCurrency
public void setCurrency(Currency currency)(Code)
Sets the currency of these DecimalFormatSymbols. This also sets the currency symbol attribute to the currency's symbol in the DecimalFormatSymbols' locale, and the international currency symbol attribute to the currency's ISO 4217 currency code.
Parameters:
  currency - the new currency to be used
exception:
  NullPointerException - if currency is null
since:
   1.4
See Also:   DecimalFormatSymbols.setCurrencySymbol
See Also:   DecimalFormatSymbols.setInternationalCurrencySymbol



setCurrencySymbol
public void setCurrencySymbol(String currency)(Code)
Sets the currency symbol for the currency of these DecimalFormatSymbols in their locale.
since:
   1.2



setDecimalSeparator
public void setDecimalSeparator(char decimalSeparator)(Code)
Sets the character used for decimal sign. Different for French, etc.



setDigit
public void setDigit(char digit)(Code)
Sets the character used for a digit in a pattern.



setExponentialSymbol
void setExponentialSymbol(char exp)(Code)
Sets the character used to separate the mantissa from the exponent.



setGroupingSeparator
public void setGroupingSeparator(char groupingSeparator)(Code)
Sets the character used for thousands separator. Different for French, etc.



setInfinity
public void setInfinity(String infinity)(Code)
Sets the string used to represent infinity. Almost always left unchanged.



setInternationalCurrencySymbol
public void setInternationalCurrencySymbol(String currencyCode)(Code)
Sets the ISO 4217 currency code of the currency of these DecimalFormatSymbols. If the currency code is valid (as defined by java.util.Currency.getInstance(java.lang.String) Currency.getInstance ), this also sets the currency attribute to the corresponding Currency instance and the currency symbol attribute to the currency's symbol in the DecimalFormatSymbols' locale. If the currency code is not valid, then the currency attribute is set to null and the currency symbol attribute is not modified.
See Also:   DecimalFormatSymbols.setCurrency
See Also:   DecimalFormatSymbols.setCurrencySymbol
since:
   1.2



setMinusSign
public void setMinusSign(char minusSign)(Code)
Sets the character used to represent minus sign. If no explicit negative format is specified, one is formed by prefixing minusSign to the positive format.



setMonetaryDecimalSeparator
public void setMonetaryDecimalSeparator(char sep)(Code)
Sets the monetary decimal separator.
since:
   1.2



setNaN
public void setNaN(String NaN)(Code)
Sets the string used to represent "not a number". Almost always left unchanged.



setPatternSeparator
public void setPatternSeparator(char patternSeparator)(Code)
Sets the character used to separate positive and negative subpatterns in a pattern.



setPerMill
public void setPerMill(char perMill)(Code)
Sets the character used for mille percent sign. Different for Arabic, etc.



setPercent
public void setPercent(char percent)(Code)
Sets the character used for percent sign. Different for Arabic, etc.



setZeroDigit
public void setZeroDigit(char zeroDigit)(Code)
Sets the character used for zero. Different for Arabic, etc.



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.