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


java.lang.Object
   java.lang.Character

All known Subclasses:   java.awt.im.InputSubset,
Character
final public class Character extends Object (Code)
The Character class wraps a value of the primitive type char in an object. An object of type Character contains a single field whose type is char.

In addition, this class provides several methods for determining the type of a character and converting characters from uppercase to lowercase and vice versa.

Character information is based on the Unicode Standard, version 3.0. However, in order to reduce footprint, by default the character property and case conversion operations in CLDC are available only for the ISO Latin-1 range of characters. Other Unicode character blocks can be supported as necessary.


version:
   12/17/01 (CLDC 1.1)
since:
   JDK1.0, CLDC 1.0



Field Summary
final public static  intMAX_RADIX
     The maximum radix available for conversion to and from Strings.
final public static  charMAX_VALUE
     The constant value of this field is the largest value of type char.
final public static  intMIN_RADIX
     The minimum radix available for conversion to and from Strings.
final public static  charMIN_VALUE
     The constant value of this field is the smallest value of type char.

Constructor Summary
public  Character(char value)
     Constructs a Character object and initializes it so that it represents the primitive value argument.

Method Summary
public  charcharValue()
     Returns the value of this Character object.
public static  intdigit(char ch, int radix)
     Returns the numeric value of the character ch in the specified radix.
Parameters:
  ch - the character to be converted.
Parameters:
  radix - the radix.
public  booleanequals(Object obj)
     Compares this object against the specified object. The result is true if and only if the argument is not null and is a Character object that represents the same char value as this object.
Parameters:
  obj - the object to compare with.
public  inthashCode()
     Returns a hash code for this Character.
public static  booleanisDigit(char ch)
     Determines if the specified character is a digit.
Parameters:
  ch - the character to be tested.
public static  booleanisLowerCase(char ch)
     Determines if the specified character is a lowercase character.

Note that by default CLDC only supports the ISO Latin-1 range of characters.

Of the ISO Latin-1 characters (character codes 0x0000 through 0x00FF), the following are lowercase:

a b c d e f g h i j k l m n o p q r s t u v w x y z \u00DF \u00E0 \u00E1 \u00E2 \u00E3 \u00E4 \u00E5 \u00E6 \u00E7 \u00E8 \u00E9 \u00EA \u00EB \u00EC \u00ED \u00EE \u00EF \u00F0 \u00F1 \u00F2 \u00F3 \u00F4 \u00F5 \u00F6 \u00F8 \u00F9 \u00FA \u00FB \u00FC \u00FD \u00FE \u00FF
Parameters:
  ch - the character to be tested.

public static  booleanisUpperCase(char ch)
     Determines if the specified character is an uppercase character.

Note that by default CLDC only supports the ISO Latin-1 range of characters.

Of the ISO Latin-1 characters (character codes 0x0000 through 0x00FF), the following are uppercase:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \u00C0 \u00C1 \u00C2 \u00C3 \u00C4 \u00C5 \u00C6 \u00C7 \u00C8 \u00C9 \u00CA \u00CB \u00CC \u00CD \u00CE \u00CF \u00D0 \u00D1 \u00D2 \u00D3 \u00D4 \u00D5 \u00D6 \u00D8 \u00D9 \u00DA \u00DB \u00DC \u00DD \u00DE
Parameters:
  ch - the character to be tested.

public static  chartoLowerCase(char ch)
     The given character is mapped to its lowercase equivalent; if the character has no lowercase equivalent, the character itself is returned.

Note that by default CLDC only supports the ISO Latin-1 range of characters.
Parameters:
  ch - the character to be converted.

public  StringtoString()
     Returns a String object representing this character's value. Converts this Character object to a string.
public static  chartoUpperCase(char ch)
     Converts the character argument to uppercase; if the character has no uppercase equivalent, the character itself is returned.

Note that by default CLDC only supports the ISO Latin-1 range of characters.
Parameters:
  ch - the character to be converted.


Field Detail
MAX_RADIX
final public static int MAX_RADIX(Code)
The maximum radix available for conversion to and from Strings.
See Also:   java.lang.Integer.toString(intint)
See Also:   java.lang.Integer.valueOf(java.lang.String)



MAX_VALUE
final public static char MAX_VALUE(Code)
The constant value of this field is the largest value of type char.
since:
   JDK1.0.2



MIN_RADIX
final public static int MIN_RADIX(Code)
The minimum radix available for conversion to and from Strings.
See Also:   java.lang.Integer.toString(intint)
See Also:   java.lang.Integer.valueOf(java.lang.String)



MIN_VALUE
final public static char MIN_VALUE(Code)
The constant value of this field is the smallest value of type char.
since:
   JDK1.0.2




Constructor Detail
Character
public Character(char value)(Code)
Constructs a Character object and initializes it so that it represents the primitive value argument.
Parameters:
  value - value for the new Character object.




Method Detail
charValue
public char charValue()(Code)
Returns the value of this Character object. the primitive char value represented bythis object.



digit
public static int digit(char ch, int radix)(Code)
Returns the numeric value of the character ch in the specified radix.
Parameters:
  ch - the character to be converted.
Parameters:
  radix - the radix. the numeric value represented by the character in thespecified radix.
See Also:   java.lang.Character.isDigit(char)
since:
   JDK1.0



equals
public boolean equals(Object obj)(Code)
Compares this object against the specified object. The result is true if and only if the argument is not null and is a Character object that represents the same char value as this object.
Parameters:
  obj - the object to compare with. true if the objects are the same;false otherwise.



hashCode
public int hashCode()(Code)
Returns a hash code for this Character. a hash code value for this object.



isDigit
public static boolean isDigit(char ch)(Code)
Determines if the specified character is a digit.
Parameters:
  ch - the character to be tested. true if the character is a digit;false otherwise.
since:
   JDK1.0



isLowerCase
public static boolean isLowerCase(char ch)(Code)
Determines if the specified character is a lowercase character.

Note that by default CLDC only supports the ISO Latin-1 range of characters.

Of the ISO Latin-1 characters (character codes 0x0000 through 0x00FF), the following are lowercase:

a b c d e f g h i j k l m n o p q r s t u v w x y z \u00DF \u00E0 \u00E1 \u00E2 \u00E3 \u00E4 \u00E5 \u00E6 \u00E7 \u00E8 \u00E9 \u00EA \u00EB \u00EC \u00ED \u00EE \u00EF \u00F0 \u00F1 \u00F2 \u00F3 \u00F4 \u00F5 \u00F6 \u00F8 \u00F9 \u00FA \u00FB \u00FC \u00FD \u00FE \u00FF
Parameters:
  ch - the character to be tested. true if the character is lowercase;false otherwise.
since:
   JDK1.0




isUpperCase
public static boolean isUpperCase(char ch)(Code)
Determines if the specified character is an uppercase character.

Note that by default CLDC only supports the ISO Latin-1 range of characters.

Of the ISO Latin-1 characters (character codes 0x0000 through 0x00FF), the following are uppercase:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \u00C0 \u00C1 \u00C2 \u00C3 \u00C4 \u00C5 \u00C6 \u00C7 \u00C8 \u00C9 \u00CA \u00CB \u00CC \u00CD \u00CE \u00CF \u00D0 \u00D1 \u00D2 \u00D3 \u00D4 \u00D5 \u00D6 \u00D8 \u00D9 \u00DA \u00DB \u00DC \u00DD \u00DE
Parameters:
  ch - the character to be tested. true if the character is uppercase;false otherwise.
See Also:   java.lang.Character.isLowerCase(char)
See Also:   java.lang.Character.toUpperCase(char)
since:
   1.0




toLowerCase
public static char toLowerCase(char ch)(Code)
The given character is mapped to its lowercase equivalent; if the character has no lowercase equivalent, the character itself is returned.

Note that by default CLDC only supports the ISO Latin-1 range of characters.
Parameters:
  ch - the character to be converted. the lowercase equivalent of the character, if any;otherwise the character itself.
See Also:   java.lang.Character.isLowerCase(char)
See Also:   java.lang.Character.isUpperCase(char)
See Also:   java.lang.Character.toUpperCase(char)
since:
   JDK1.0




toString
public String toString()(Code)
Returns a String object representing this character's value. Converts this Character object to a string. The result is a string whose length is 1. The string's sole component is the primitive char value represented by this object. a string representation of this object.



toUpperCase
public static char toUpperCase(char ch)(Code)
Converts the character argument to uppercase; if the character has no uppercase equivalent, the character itself is returned.

Note that by default CLDC only supports the ISO Latin-1 range of characters.
Parameters:
  ch - the character to be converted. the uppercase equivalent of the character, if any;otherwise the character itself.
See Also:   java.lang.Character.isLowerCase(char)
See Also:   java.lang.Character.isUpperCase(char)
See Also:   java.lang.Character.toLowerCase(char)
since:
   JDK1.0




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.