Methods Summary |
---|
static DefaultCaseConverter | caseConverter()
if (cc != null) {
return cc;
}
String ccName = "?";
try {
/* Get the default encoding name */
ccName = System.getProperty("java.lang.Character.caseConverter");
if (ccName == null) {
ccName = "com.sun.cldc.i18n.uclc.DefaultCaseConverter";
}
/* Using the decoder names lookup a class to implement the reader */
Class clazz = Class.forName(ccName);
/* Return a new instance */
cc = (DefaultCaseConverter)clazz.newInstance();
} catch(Exception x) {
throw new RuntimeException(
/* #ifdef VERBOSE_EXCEPTIONS */
/// skipped "Cannot find case converter class "+ccName+" -> "+x.getMessage()
/* #endif */
);
}
return cc;
|
public char | charValue()Returns the value of this Character object.
return value;
|
public static int | digit(char ch, int radix)Returns the numeric value of the character ch in the
specified radix.
return caseConverter().digit(ch, radix);
|
public boolean | equals(java.lang.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.
if (obj instanceof Character) {
return value == ((Character)obj).charValue();
}
return false;
|
public int | hashCode()Returns a hash code for this Character.
return (int)value;
|
public static boolean | isDigit(char ch)Determines if the specified character is a digit.
return caseConverter().isDigit(ch);
|
public static boolean | isLowerCase(char ch)Determines if the specified character is a lowercase character.
return caseConverter().isLowerCase(ch);
|
public static boolean | isUpperCase(char ch)Determines if the specified character is an uppercase character.
return caseConverter().isUpperCase(ch);
|
public 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.
return caseConverter().toLowerCase(ch);
|
public java.lang.String | toString()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.
char buf[] = {value};
return String.valueOf(buf);
|
public static char | toUpperCase(char ch)Converts the character argument to uppercase; if the
character has no lowercase equivalent, the character itself is
returned.
return caseConverter().toUpperCase(ch);
|