|
||||||||||
| 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_RADIX
|
static char |
MAX_VALUE
|
static int |
MIN_RADIX
|
static char |
MIN_VALUE
|
| Constructor Summary | |
|---|---|
Character(char value)
Constructs a Character object and initializes it so that it represents the primitive value argument. |
|
| 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 ch in 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. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MIN_RADIX
public static final int MAX_RADIX
public static final char MIN_VALUE
public static final char MAX_VALUE
| Constructor Detail |
|---|
public Character(char value)
| Method Detail |
|---|
public static int digit(char ch,
int radix)
public boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
public int hashCode()
hashCode in class Objectpublic static boolean isDigit(char ch)
public static boolean isLowerCase(char ch)
public static boolean isUpperCase(char ch)
public static char toLowerCase(char ch)
public static char toUpperCase(char ch)
public String toString()
toString in class Objectpublic char charValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||