| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Character
public final class Character
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.
| Field Summary | |
|---|---|
| static int | MAX_RADIXThe maximum radix available for conversion to and from Strings. | 
| static char | MAX_VALUEThe constant value of this field is the largest value of type char. | 
| static int | MIN_RADIXThe minimum radix available for conversion to and from Strings. | 
| static char | MIN_VALUEThe constant value of this field is the smallest value of type char. | 
| Constructor Summary | |
|---|---|
| Character(char value)Constructs a Characterobject and initializes it so
 that it represents the primitivevalueargument. | |
| Method Summary | |
|---|---|
|  char | charValue()Returns the value of this Character object. | 
| static int | digit(char ch,
      int radix)Returns the numeric value of the character chin the
 specified radix. | 
|  boolean | equals(Object obj)Compares this object against the specified object. | 
|  int | hashCode()Returns a hash code for this Character. | 
| static boolean | isDigit(char ch)Determines if the specified character is a digit. | 
| static boolean | isLowerCase(char ch)Determines if the specified character is a lowercase character. | 
| static boolean | isUpperCase(char ch)Determines if the specified character is an uppercase character. | 
| static char | toLowerCase(char ch)The given character is mapped to its lowercase equivalent; if the character has no lowercase equivalent, the character itself is returned. | 
|  String | toString()Returns a String object representing this character's value. | 
| static char | toUpperCase(char ch)Converts the character argument to uppercase; if the character has no uppercase equivalent, the character itself is returned. | 
| static Character | valueOf(char val) | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int MIN_RADIX
Integer.toString(int, int), 
Integer.valueOf(java.lang.String), 
Constant Field Valuespublic static final int MAX_RADIX
Integer.toString(int, int), 
Integer.valueOf(java.lang.String), 
Constant Field Valuespublic static final char MIN_VALUE
char.
public static final char MAX_VALUE
char.
| Constructor Detail | 
|---|
public Character(char value)
Character object and initializes it so
 that it represents the primitive value argument.
value - value for the new Character object.| Method Detail | 
|---|
public char charValue()
char value represented by
          this object.public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object), 
Hashtablepublic boolean equals(Object obj)
true if and only if the argument is not
 null and is a Character object that
 represents the same char value as this object.
equals in class Objectobj - the object to compare with.
true if the objects are the same;
          false otherwise.Boolean.hashCode(), 
Hashtablepublic String toString()
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.
toString in class Objectpublic static boolean isLowerCase(char ch)
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
ch - the character to be tested.
true if the character is lowercase;
          false otherwise.public static boolean isUpperCase(char ch)
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
ch - the character to be tested.
true if the character is uppercase;
          false otherwise.isLowerCase(char), 
toUpperCase(char)public static boolean isDigit(char ch)
ch - the character to be tested.
true if the character is a digit;
          false otherwise.public static char toLowerCase(char ch)
Note that by default CLDC only supports the ISO Latin-1 range of characters.
ch - the character to be converted.
isLowerCase(char), 
isUpperCase(char), 
toUpperCase(char)public static char toUpperCase(char ch)
Note that by default CLDC only supports the ISO Latin-1 range of characters.
ch - the character to be converted.
isLowerCase(char), 
isUpperCase(char), 
toLowerCase(char)
public static int digit(char ch,
                        int radix)
ch in the
 specified radix.
ch - the character to be converted.radix - the radix.
isDigit(char)public static Character valueOf(char val)
| 
 | " 2013 FRC Java API" | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||