The Character class wraps the primitive type char.
Constructor | Summary |
---|---|
Character(char value) | Creates a Character object for char value. |
Get char value from Character object
Return | Method | Summary |
---|---|---|
char | charValue() | Returns the value of this Character object. |
Check the character type
Return | Method | Summary |
---|---|---|
static boolean | isDefined(char ch) | if a character is defined in Unicode. |
static boolean | isDigit(char ch) | if the character is a digit. |
static boolean | isHighSurrogate(char ch) | if the char is a high-surrogate code unit. |
static boolean | isIdentifierIgnorable(char ch) | if the character should be regarded as an ignorable character in a Java identifier or a Unicode identifier. |
static boolean | isISOControl(char ch) | if the character is an ISO control character. |
static boolean | isJavaIdentifierPart(char ch) | if the character may be part of a Java identifier as other than the first character. |
static boolean | isJavaIdentifierStart(char ch) | if the character is permissible as the first character in a Java identifier. |
static boolean | isLetter(char ch) | if the character is a letter. |
static boolean | isLetterOrDigit(char ch) | if the character is a letter or digit. |
static boolean | isLowerCase(char ch) | if the character is a lowercase character. |
static boolean | isLowSurrogate(char ch) | if the char value is a low-surrogate code unit. |
static boolean | isMirrored(char ch) | whether the character is mirrored according to the Unicode specification. |
static boolean | isSpaceChar(char ch) | if the character is a Unicode space character. |
static boolean | isSurrogatePair(char high, char low) | whether the pair of char values is a valid surrogate pair. |
static boolean | isTitleCase(char ch) | if the character is a titlecase character. |
static boolean | isUnicodeIdentifierPart(char ch) | if the character may be part of a Unicode identifier as other than the first character. |
static boolean | isUnicodeIdentifierStart(char ch) | if the character is permissible as the first character in a Unicode identifier. |
static boolean | isUpperCase(char ch) | if the character is an uppercase character. |
static boolean | isWhitespace(char ch) | if the character is white space according to Java. |
Get the char type from char value
Return | Method | Summary |
---|---|---|
static int | getType(char ch) | Returns a value indicating a character's general category. |
Change character case
Return | Method | Summary |
---|---|---|
static char | toTitleCase(char ch) | Converts to titlecase. |
static char | toUpperCase(char ch) | Converts to uppercase. |
static char | toLowerCase(char ch) | Converts to lowercase. |
Compare two characters
Return | Method | Summary |
---|---|---|
int | compareTo(Character anotherCharacter) | Compares two Character objects numerically. |
boolean | equals(Object obj) | Compares this object against the specified object. |
Convert character to String
Return | Method | Summary |
---|---|---|
static String | toString(char c) | Returns a String object representing the specified char. |
String | toString() | Returns a String object representing this Character's value. |
Get the numeric value for a char
Return | Method | Summary |
---|---|---|
static int | getNumericValue(char ch) | Returns the int value that the specified Unicode character represents. |
Convert digit to char with radix
Return | Method | Summary |
---|---|---|
static char | forDigit(int digit, int radix) | Determines the character representation for a specific digit in the specified radix. |
java2s.com | Contact Us | Privacy Policy |
Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
All other trademarks are property of their respective owners. |