Java java.lang Character fields, constructors, methods, implement or subclass

Example usage for Java java.lang Character fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang Character.

The text is from its open source code.

Subclass

java.lang.Character has subclasses.
Click this link to see all its subclasses.

Field

intMIN_RADIX
The minimum radix available for conversion to and from strings.
intMAX_RADIX
The maximum radix available for conversion to and from strings.
charMIN_VALUE
The constant value of this field is the smallest value of type char , '\u005Cu0000' .
charMAX_VALUE
The constant value of this field is the largest value of type char , '\u005CuFFFF' .
ClassTYPE
The Class instance representing the primitive type char .
byteUNASSIGNED
General category "Cn" in the Unicode specification.
byteUPPERCASE_LETTER
General category "Lu" in the Unicode specification.
byteLOWERCASE_LETTER
General category "Ll" in the Unicode specification.
byteTITLECASE_LETTER
General category "Lt" in the Unicode specification.
byteMODIFIER_LETTER
General category "Lm" in the Unicode specification.
byteOTHER_LETTER
General category "Lo" in the Unicode specification.
byteNON_SPACING_MARK
General category "Mn" in the Unicode specification.
byteENCLOSING_MARK
General category "Me" in the Unicode specification.
byteCOMBINING_SPACING_MARK
General category "Mc" in the Unicode specification.
byteDECIMAL_DIGIT_NUMBER
General category "Nd" in the Unicode specification.
byteLETTER_NUMBER
General category "Nl" in the Unicode specification.
byteOTHER_NUMBER
General category "No" in the Unicode specification.
byteSPACE_SEPARATOR
General category "Zs" in the Unicode specification.
byteLINE_SEPARATOR
General category "Zl" in the Unicode specification.
bytePARAGRAPH_SEPARATOR
General category "Zp" in the Unicode specification.
byteCONTROL
General category "Cc" in the Unicode specification.
byteFORMAT
General category "Cf" in the Unicode specification.
bytePRIVATE_USE
General category "Co" in the Unicode specification.
byteSURROGATE
General category "Cs" in the Unicode specification.
byteDASH_PUNCTUATION
General category "Pd" in the Unicode specification.
byteSTART_PUNCTUATION
General category "Ps" in the Unicode specification.
byteEND_PUNCTUATION
General category "Pe" in the Unicode specification.
byteCONNECTOR_PUNCTUATION
General category "Pc" in the Unicode specification.
byteOTHER_PUNCTUATION
General category "Po" in the Unicode specification.
byteMATH_SYMBOL
General category "Sm" in the Unicode specification.
byteCURRENCY_SYMBOL
General category "Sc" in the Unicode specification.
byteMODIFIER_SYMBOL
General category "Sk" in the Unicode specification.
byteOTHER_SYMBOL
General category "So" in the Unicode specification.
byteINITIAL_QUOTE_PUNCTUATION
General category "Pi" in the Unicode specification.
byteFINAL_QUOTE_PUNCTUATION
General category "Pf" in the Unicode specification.
byteDIRECTIONALITY_UNDEFINED
Undefined bidirectional character type.
byteDIRECTIONALITY_LEFT_TO_RIGHT
Strong bidirectional character type "L" in the Unicode specification.
byteDIRECTIONALITY_RIGHT_TO_LEFT
Strong bidirectional character type "R" in the Unicode specification.
byteDIRECTIONALITY_RIGHT_TO_LEFT_ARABIC
Strong bidirectional character type "AL" in the Unicode specification.
byteDIRECTIONALITY_EUROPEAN_NUMBER
Weak bidirectional character type "EN" in the Unicode specification.
byteDIRECTIONALITY_EUROPEAN_NUMBER_SEPARATOR
Weak bidirectional character type "ES" in the Unicode specification.
byteDIRECTIONALITY_EUROPEAN_NUMBER_TERMINATOR
Weak bidirectional character type "ET" in the Unicode specification.
byteDIRECTIONALITY_ARABIC_NUMBER
Weak bidirectional character type "AN" in the Unicode specification.
byteDIRECTIONALITY_COMMON_NUMBER_SEPARATOR
Weak bidirectional character type "CS" in the Unicode specification.
byteDIRECTIONALITY_NONSPACING_MARK
Weak bidirectional character type "NSM" in the Unicode specification.
byteDIRECTIONALITY_BOUNDARY_NEUTRAL
Weak bidirectional character type "BN" in the Unicode specification.
byteDIRECTIONALITY_PARAGRAPH_SEPARATOR
Neutral bidirectional character type "B" in the Unicode specification.
byteDIRECTIONALITY_SEGMENT_SEPARATOR
Neutral bidirectional character type "S" in the Unicode specification.
byteDIRECTIONALITY_WHITESPACE
Neutral bidirectional character type "WS" in the Unicode specification.
byteDIRECTIONALITY_OTHER_NEUTRALS
Neutral bidirectional character type "ON" in the Unicode specification.
byteDIRECTIONALITY_LEFT_TO_RIGHT_EMBEDDING
Strong bidirectional character type "LRE" in the Unicode specification.
byteDIRECTIONALITY_LEFT_TO_RIGHT_OVERRIDE
Strong bidirectional character type "LRO" in the Unicode specification.
byteDIRECTIONALITY_RIGHT_TO_LEFT_EMBEDDING
Strong bidirectional character type "RLE" in the Unicode specification.
byteDIRECTIONALITY_RIGHT_TO_LEFT_OVERRIDE
Strong bidirectional character type "RLO" in the Unicode specification.
byteDIRECTIONALITY_POP_DIRECTIONAL_FORMAT
Weak bidirectional character type "PDF" in the Unicode specification.
charMIN_HIGH_SURROGATE
The minimum value of a Unicode high-surrogate code unit in the UTF-16 encoding, constant '\u005CuD800' .
charMAX_HIGH_SURROGATE
The maximum value of a Unicode high-surrogate code unit in the UTF-16 encoding, constant '\u005CuDBFF' .
charMIN_LOW_SURROGATE
The minimum value of a Unicode low-surrogate code unit in the UTF-16 encoding, constant '\u005CuDC00' .
charMAX_LOW_SURROGATE
The maximum value of a Unicode low-surrogate code unit in the UTF-16 encoding, constant '\u005CuDFFF' .
charMIN_SURROGATE
The minimum value of a Unicode surrogate code unit in the UTF-16 encoding, constant '\u005CuD800' .
charMAX_SURROGATE
The maximum value of a Unicode surrogate code unit in the UTF-16 encoding, constant '\u005CuDFFF' .
intMIN_SUPPLEMENTARY_CODE_POINT
The minimum value of a Unicode supplementary code point, constant U+10000 .
intMIN_CODE_POINT
The minimum value of a Unicode code point, constant U+0000 .
intMAX_CODE_POINT
The maximum value of a Unicode code point, constant U+10FFFF .
intSIZE
The number of bits used to represent a char value in unsigned binary form, constant 16 .
intBYTES
The number of bytes used to represent a char value in unsigned binary form.

Constructor

Character(char value)
Constructs a newly allocated Character object that represents the specified char value.

Method

intcharCount(int codePoint)
Determines the number of char values needed to represent the specified character (Unicode code point).
charcharValue()
Returns the value of this Character object.
intcodePointAt(CharSequence seq, int index)
Returns the code point at the given index of the CharSequence .
intcodePointAt(char[] a, int index)
Returns the code point at the given index of the char array.
intcodePointAt(char[] a, int index, int limit)
Returns the code point at the given index of the char array, where only array elements with index less than limit can be used.
intcodePointBefore(CharSequence seq, int index)
Returns the code point preceding the given index of the CharSequence .
intcodePointBefore(char[] a, int index)
Returns the code point preceding the given index of the char array.
intcodePointBefore(char[] a, int index, int start)
Returns the code point preceding the given index of the char array, where only array elements with index greater than or equal to start can be used.
intcodePointCount(CharSequence seq, int beginIndex, int endIndex)
Returns the number of Unicode code points in the text range of the specified char sequence.
intcodePointCount(char[] a, int offset, int count)
Returns the number of Unicode code points in a subarray of the char array argument.
intcompare(char x, char y)
Compares two char values numerically.
intcompareTo(Character anotherCharacter)
Compares two Character objects numerically.
intdigit(char ch, int radix)
Returns the numeric value of the character ch in the specified radix.
intdigit(int codePoint, int radix)
Returns the numeric value of the specified character (Unicode code point) in the specified radix.
booleanequals(Object obj)
Compares this object against the specified object.
charforDigit(int digit, int radix)
Determines the character representation for a specific digit in the specified radix.
bytegetDirectionality(char ch)
Returns the Unicode directionality property for the given character.
bytegetDirectionality(int codePoint)
Returns the Unicode directionality property for the given character (Unicode code point).
StringgetName(int codePoint)
Returns the Unicode name of the specified character codePoint , or null if the code point is #UNASSIGNED unassigned .
intgetNumericValue(char ch)
Returns the int value that the specified Unicode character represents.
intgetNumericValue(int codePoint)
Returns the int value that the specified character (Unicode code point) represents.
intgetType(char ch)
Returns a value indicating a character's general category.
intgetType(int codePoint)
Returns a value indicating a character's general category.
inthashCode()
Returns a hash code for this Character ; equal to the result of invoking charValue() .
inthashCode(char value)
Returns a hash code for a char value; compatible with Character.hashCode() .
charhighSurrogate(int codePoint)
Returns the leading surrogate (a high surrogate code unit) of the surrogate pair representing the specified supplementary character (Unicode code point) in the UTF-16 encoding.
booleanisAlphabetic(int codePoint)
Determines if the specified character (Unicode code point) is an alphabet.
booleanisBmpCodePoint(int codePoint)
Determines whether the specified character (Unicode code point) is in the Basic Multilingual Plane (BMP).
booleanisDefined(char ch)
Determines if a character is defined in Unicode.
booleanisDefined(int codePoint)
Determines if a character (Unicode code point) is defined in Unicode.
booleanisDigit(char ch)
Determines if the specified character is a digit.
booleanisDigit(int codePoint)
Determines if the specified character (Unicode code point) is a digit.
booleanisHighSurrogate(char ch)
Determines if the given char value is a Unicode high-surrogate code unit (also known as leading-surrogate code unit).
booleanisIdentifierIgnorable(char ch)
Determines if the specified character should be regarded as an ignorable character in a Java identifier or a Unicode identifier.
booleanisIdentifierIgnorable(int codePoint)
Determines if the specified character (Unicode code point) should be regarded as an ignorable character in a Java identifier or a Unicode identifier.
booleanisIdeographic(int codePoint)
Determines if the specified character (Unicode code point) is a CJKV (Chinese, Japanese, Korean and Vietnamese) ideograph, as defined by the Unicode Standard.
booleanisISOControl(char ch)
Determines if the specified character is an ISO control character.
booleanisISOControl(int codePoint)
Determines if the referenced character (Unicode code point) is an ISO control character.
booleanisJavaIdentifierPart(char ch)
Determines if the specified character may be part of a Java identifier as other than the first character.
booleanisJavaIdentifierPart(int codePoint)
Determines if the character (Unicode code point) may be part of a Java identifier as other than the first character.
booleanisJavaIdentifierStart(char ch)
Determines if the specified character is permissible as the first character in a Java identifier.
booleanisJavaIdentifierStart(int codePoint)
Determines if the character (Unicode code point) is permissible as the first character in a Java identifier.
booleanisJavaLetter(char ch)
Determines if the specified character is permissible as the first character in a Java identifier.
booleanisJavaLetterOrDigit(char ch)
Determines if the specified character may be part of a Java identifier as other than the first character.
booleanisLetter(char ch)
Determines if the specified character is a letter.
booleanisLetter(int codePoint)
Determines if the specified character (Unicode code point) is a letter.
booleanisLetterOrDigit(char ch)
Determines if the specified character is a letter or digit.
booleanisLetterOrDigit(int codePoint)
Determines if the specified character (Unicode code point) is a letter or digit.
booleanisLowerCase(char ch)
Determines if the specified character is a lowercase character.
booleanisLowerCase(int codePoint)
Determines if the specified character (Unicode code point) is a lowercase character.
booleanisLowSurrogate(char ch)
Determines if the given char value is a Unicode low-surrogate code unit (also known as trailing-surrogate code unit).
booleanisMirrored(char ch)
Determines whether the character is mirrored according to the Unicode specification.
booleanisMirrored(int codePoint)
Determines whether the specified character (Unicode code point) is mirrored according to the Unicode specification.
booleanisSpace(char ch)
Determines if the specified character is ISO-LATIN-1 white space.
booleanisSpaceChar(char ch)
Determines if the specified character is a Unicode space character.
booleanisSpaceChar(int codePoint)
Determines if the specified character (Unicode code point) is a Unicode space character.
booleanisSupplementaryCodePoint(int codePoint)
Determines whether the specified character (Unicode code point) is in the supplementary character range.
booleanisSurrogate(char ch)
Determines if the given char value is a Unicode surrogate code unit.
booleanisSurrogatePair(char high, char low)
Determines whether the specified pair of char values is a valid Unicode surrogate pair.
booleanisTitleCase(char ch)
Determines if the specified character is a titlecase character.
booleanisTitleCase(int codePoint)
Determines if the specified character (Unicode code point) is a titlecase character.
booleanisUnicodeIdentifierPart(char ch)
Determines if the specified character may be part of a Unicode identifier as other than the first character.
booleanisUnicodeIdentifierPart(int codePoint)
Determines if the specified character (Unicode code point) may be part of a Unicode identifier as other than the first character.
booleanisUnicodeIdentifierStart(char ch)
Determines if the specified character is permissible as the first character in a Unicode identifier.
booleanisUnicodeIdentifierStart(int codePoint)
Determines if the specified character (Unicode code point) is permissible as the first character in a Unicode identifier.
booleanisUpperCase(char ch)
Determines if the specified character is an uppercase character.
booleanisUpperCase(int codePoint)
Determines if the specified character (Unicode code point) is an uppercase character.
booleanisValidCodePoint(int codePoint)
Determines whether the specified code point is a valid Unicode code point value.
booleanisWhitespace(char ch)
Determines if the specified character is white space according to Java.
booleanisWhitespace(int codePoint)
Determines if the specified character (Unicode code point) is white space according to Java.
charlowSurrogate(int codePoint)
Returns the trailing surrogate (a low surrogate code unit) of the surrogate pair representing the specified supplementary character (Unicode code point) in the UTF-16 encoding.
intoffsetByCodePoints(CharSequence seq, int index, int codePointOffset)
Returns the index within the given char sequence that is offset from the given index by codePointOffset code points.
intoffsetByCodePoints(char[] a, int start, int count, int index, int codePointOffset)
Returns the index within the given char subarray that is offset from the given index by codePointOffset code points.
charreverseBytes(char ch)
Returns the value obtained by reversing the order of the bytes in the specified char value.
char[]toChars(int codePoint)
Converts the specified character (Unicode code point) to its UTF-16 representation stored in a char array.
inttoChars(int codePoint, char[] dst, int dstIndex)
Converts the specified character (Unicode code point) to its UTF-16 representation.
inttoCodePoint(char high, char low)
Converts the specified surrogate pair to its supplementary code point value.
chartoLowerCase(char ch)
Converts the character argument to lowercase using case mapping information from the UnicodeData file.
inttoLowerCase(int codePoint)
Converts the character (Unicode code point) argument to lowercase using case mapping information from the UnicodeData file.
StringtoString()
Returns a String object representing this Character 's value.
StringtoString(char c)
Returns a String object representing the specified char .
StringtoString(int codePoint)
Returns a String object representing the specified character (Unicode code point).
chartoTitleCase(char ch)
Converts the character argument to titlecase using case mapping information from the UnicodeData file.
inttoTitleCase(int codePoint)
Converts the character (Unicode code point) argument to titlecase using case mapping information from the UnicodeData file.
chartoUpperCase(char ch)
Converts the character argument to uppercase using case mapping information from the UnicodeData file.
inttoUpperCase(int codePoint)
Converts the character (Unicode code point) argument to uppercase using case mapping information from the UnicodeData file.
CharactervalueOf(char c)
Returns a Character instance representing the specified char value.