|
Generated by JDiff |
||||||||
| PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES | |||||||||
This file contains all the changes in documentation in the packagejava.langas colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
Thrown when an application tries to call an abstract method. Normally this error is caught by the compiler; this error can only occur at run time if the definition of some class has incompatibly changed since the currently executing method was last compiled. @author unascribed @version 1.15 0216 12/0203/0001 @since JDK1.0
Thrown when an exceptional arithmetic condition has occurred. For example an integer "divide by zero" throws an instance of this class. @author unascribed @version 1.19 0220 12/0203/0001 @since JDK1.0
Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array. @author unascribed @version 1.18 0219 12/0203/0001 @since JDK1.0
Thrown to indicate that an attempt has been made to store the wrong type of object into an array of objects. For example the following code generates anArrayStoreException:@author unascribed @version 1.Object x[] = new String[3]; x[0] = new Integer(0);8 029 12/0203/0001 @since JDK1.0
The Boolean class wraps a value of the primitive typeClass Boolean, constructor Boolean(boolean)booleanin an object. An object of typeBooleancontains a single field whose type isboolean.In addition this class provides many methods for converting a
booleanto aStringand aStringto abooleanas well as other constants and methods useful when dealing with aboolean. @author Arthur van Hoff @version 1.38 0242 12/0203/0001 @since JDK1.0
Allocates aBooleanobject representing thevalueargument.Note: It is rarely appropriate to use this constructor. Unless a new instance is required the static factory #valueOf(boolean) is generally a better choice. It is likely to yield significantly better space and time performance. @param value the value of the
Boolean.
TheClass Byte, constructor Byte(String)Byteclass wraps a value of primitive typebytein an object. An object of typeBytecontains a single field whose type isthebyte.In addition
standardthiswrapperclass provides several methods for converting abyteto aStringand aStringto abyte as well as other constants andvaluesmethods useful when dealing with abyte. @author Nakul Saraiya @version 1.20 0228 12/0203/0001 @see java.lang.Number @since JDK1.1
Constructs a newly allocatedClass Byte, constructor Byte(byte)Byte objectinitialized tothat represents thebytevaluespecifiedindicated by theStringparameter. Theradixstring isassumedconverted tobeabytevalue in exactly the manner used by theparseBytemethod for radix 10. @param s theStringto be converted to aByte@exception NumberFormatException If theStringdoes not contain a parsablebyte. @see java.lang.Byte#parseByte(java.lang.String int)
Constructs a newly allocatedClass Byte, byte byteValue()Byte objectinitialized tothat represents the specifiedbytevalue. @param value theinitialvalueofto be represented by theByte.
Returns the value of thisClass Byte, int compareTo(Byte)Byteas abyte.
Compares twoClass Byte, int compareTo(Object)BytesByteobjects numerically. @param anotherByte theByteto be compared. @return the value0ifthe argumentthisByteis equal tothisthe argumentByte; a value less than0if thisByteis numerically less than theByteargumentByte; and a value greater than0if thisByteis numerically greater than theByteargumentByte(signed comparison). @since 1.2
Compares thisClass Byte, Byte decode(String)Byteobject to anotherObjectobject. If theObjectobject is aBytethis function behaves likecompareTo(Byte). Otherwise it throws aClassCastException(asBytesByteobjects arecomparableonly comparable to otherBytesByteobjects). @param o theObjectto be compared. @return the value0if the argument is aBytenumerically equal to thisByte; a value less than0if the argument is aBytenumerically greater than thisByte; and a value greater than0if the argument is aBytenumerically less than thisByte. @exceptionClassCastExceptionif the argument is not a. @see java.lang.Comparable @since 1.2Byte
Decodes aClass Byte, double doubleValue()Stringinto aByte. Accepts decimal hexadecimal and octal numbersingiven by the followingformatsgrammar:[-]DecimalNumeral HexDigits and OctalDigits are defined in §3.10.1 ofdecimal
constant- DecodableString:
[-]- Signopt DecimalNumeral
- Signopt
0xhexHexDigits- Signopt
constant0X[-]HexDigits- Signopt
#HexDigits- Signopt
hex0constantOctalDigits
- Sign:
[-] 0octalconstantthe Java Language Specification.The
constantsequence of characters following an (optional) negative sign and/or"radix specifier"("0x" "0X" "#" or leading zero) is parsed as by theByte.parseBytemethod with thespecifiedindicated radix (10816 or168). Thisconstantsequence of characters mustberepresent a positive value or a NumberFormatException willresultbe thrown. The result ismadenegatednegativeif first character of the specifiedStringis thenegativeminus sign. No whitespace characters are permitted in theString. @param nm theStringto decode. @returntheaByterepresented byobject holding thespecifiedbytestring.value represented bynm@exception NumberFormatException if theStringdoes not contain a parsablebyte. @see java.lang.Byte#parseByte(java.lang.String int)
Returns the value of thisClass Byte, boolean equals(Object)Byteas adouble.
Compares this object to the specified object. The result isClass Byte, float floatValue()trueif and only if the argument is notnulland is aByteobject that contains the samebytevalue as this object. @param obj the object to compare with @returntrueif the objects are the same;falseotherwise.
Returns the value of thisClass Byte, int hashCode()Byteas afloat.
Returns aClass Byte, int intValue()hashcodehash code for thisByte.
Returns the value of thisClass Byte, long longValue()Byteas anint.
Returns the value of thisClass Byte, byte parseByte(String)Byteas along.
Class Byte, byte parseByte(String, int)AssumingParses thespecifiedstringString representsargument as a signed decimalbyte.returns thatThe charactersbyte'sinvalue.theThrows an exceptionstring must allifbe decimal digits except that theStringfirst charactercannotmay beparsedanasASCII minus sign'-'('\u002D') to indicate abytenegative value. Theradixresultingbytevalue isassumed toreturned exactlybeas if the argument and the radix 10 were given as arguments to the int) method. @param stheaStringcontaining thebyterepresentation to be parsed @return theparsedbytevalueofrepresented by thebyteargument in decimal @exception NumberFormatExceptionIfif the the string does not contain a parsablebyte.
Class Byte, short shortValue()AssumingParses thespecifiedstringString representsargument as a signedbyte in the radix specified by the second argument. The characters in the string must all be digits of the specified radix (as determined by whether int) returns a nonnegative value) except thatbytethe first character may be an ASCII minus sign's-' ('\u002D') to indicate a negative value.ThrowsTheanresultingbytevalue is returned.An
exception of typeNumberFormatExceptionis thrown if any of theStringfollowing situations occurs:
- The first argument is
nullor is a string of length zero.cannotThe radix is either smaller than java.lang.Character#MIN_RADIX or larger than java.lang.Character#MAX_RADIX Any character of the string is not a digit of the specified radix except that the first character may beparsedaasminus sign'-'('\u002D') provided that the string is longer than length 1.The value represented by the string is not a value of typebyte. @param s theStringcontaining thebyterepresentation to be parsed @param radix the radix to be used while parsings@return theparsedbytevalueofrepresented by thebytestring argument in the specified radix @exception NumberFormatException If theStringstring does not contain a parsablebyte.
Returns the value of thisClass Byte, String toString()Byteas ashort.
Returns aClass Byte, String toString(byte)Stringobject representing thisByte's value. The value is converted to signed decimal representation and returned as a string exactly as if thebytevalue were given as an argument to the java.lang.Byte#toString(byte) method. @return a string representation of the value of this object in base 10.
Returns a newClass Byte, Byte valueOf(String)Stringobject representing the specifiedBytebyte. The radix is assumed to be 10. @param b thebyteto be converted @return the string representation of the specifiedbyte@see java.lang.Integer#toString(int)
@param s theAssumingReturns aByteobject holding the value given by the specifiedString.represents a byte returnsThe argument is interpreted as representing anew Bytesigned decimalobjectbyteinitialized to thatexactly as ifvalue.theThrows an exception ifargument were given to the #parseByte(java.lang.String)cannotmethod.be parsed asThe result is aByteobject that represents thebytevalue specified by the string.The radixIn
isother words this methodassumedreturns aByteobject equal tobethe value of:new10Byte(Byte.parseByte(s))
Byte String does not contain a parsable byte.
Class Byte, Byte valueOf(String, int)Class Byte, byte MAX_VALUEAssumingReturns aByteobject holding the value extracted from the specifiedStringrepresentswhen parsed with the radix given by the second argument. The first argument is interpreted as representing a signedbytereturns a new Bytein the radix specifiedobjectby the second argument exactly as if theinitializedargument were given tothatthevalueint) method.Throws an exceptionThe result isifaByteobject that represents theStringbytecannot be parsedvalue specified byasthe string.In other words this method returns a
byteByteobject equal to the value of:@param s thenew Byte(Byte.parseByte(s radix))String containing the integerstring to be parsed @param radix the radix to be used in interpretings@returntheaByteinstanceobjectrepresentingholding theparsedvaluebyterepresentedvalueby the string argument in the specified radix. @exception NumberFormatException If theStringdoes not contain a parsablebyte.
Class Byte, byte MIN_VALUETheA constant holding the maximum value aBytebytecan have 27-1.
Class Byte, Class TYPETheA constant holding the minimum value aBytebytecan have -27.
TheClassobjectinstance representing the primitive typebyte.
TheCharacterclass wraps a value of the primitive typecharin an object. An object of typeCharactercontains a single field whose type ischar.In addition this class provides several methods for determining
theatypecharacter'sofcategorya(lowercasecharacterletter digit etc.) and for converting characters from uppercase to lowercase and vice versa.
ManyCharacterofinformation is based on the Unicode Standard version 3.0.The
methods and data of classCharacterare definedin terms of aby the information in"UnicodetheattributeUnicodeDatatable"file thatspecifies a nameisfor every definedpart of the UnicodecodeCharacterpoint.DatabaseThe table also includesmaintained by the UnicodeotherConsortium.attributes such as a decimal value an uppercase equivalent a lowercase equivalentThis file specifies various properties including name and general category for everyand/ordefineda titlecaseUnicode codeequivalent.pointTheor characterattributerange.tables for specific versions of UnicodeThe file and its description are available
onfrom theWorld Wide Web in variousUnicodesubdirectories ofConsortium at:Joy and Steele The Java Language Specification.@author Lee Boynton @author Guy Steele @author Akira Tanaka @version 1.61 02/02/00 @sinceJDK11.0
Constructs a newClass Character.Subset, boolean equals(Object)Subsetinstance. @exception NullPointerException if name isnull@param name The name of this subset
Compares twoClass Character.Subset, int hashCode()Subsetobjects for equality. This method returnstrueif and only ifandxthisythe argument refer to the same object;and because itsince this method isfinalit guarantees thisthis guarantee holds for all subclasses.
Returns the standard hash code as defined by the{@link Object#hashCode}method. This method isfinalin order to ensure that theequalsandhashCodemethods will be consistent in all subclasses.
A family of character subsets representing the character blocksdefinedinbythe Unicode2.0specification.AnyCharacter blocks generally define charactersgivenused for a specific script or purpose. A character is contained by at most one Unicode block. @since 1.2
Constructs a newly allocatedClass Character, char charValue()Characterobjectand initializes it sothatitrepresents theprimitivespecifiedvaluecharargumentvalue. @param value the valuefor theto benewrepresented by theCharacterobject.
Returns the value of thisClass Character, int compareTo(Character)Characterobject. @return the primitivecharvalue represented by this object.
Compares twoClass Character, int compareTo(Object)CharactersCharacterobjects numerically. @param anotherCharacter theCharacterto be compared. @return the value0if the argumentCharacteris equal to thisCharacter; a value less than0if thisCharacteris numerically less than theCharacterargument; and a value greater than0if thisCharacteris numerically greater than theCharacterargument (unsigned comparison). Note that this is strictly a numerical comparison; it is not locale-dependent. @since 1.2
Compares thisClass Character, int digit(char, int)Characterobject to anotherObjectobject. If theObjectobject is aCharacterthis function behaves likecompareTo(Character). Otherwise it throws aClassCastException(asCharactersCharacterobjects are comparable only to otherCharactersCharacterobjects). @param o theObjectto be compared. @return the value0if the argument is aCharacternumerically equal to thisCharacter; a value less than0if the argument is aCharacternumerically greater than thisCharacter; and a value greater than0if the argument is aCharacternumerically less than thisCharacter. @exceptionClassCastExceptionif the argument is not aCharacter. @see java.lang.Comparable @since 1.2
Returns the numeric value of the characterClass Character, char forDigit(int, int)chin the specified radix.If the radix is not in the range
MIN_RADIX<=radix<=MAX_RADIXor if the value ofchis not a valid digit in the specified radix-1is returned. A character is a valid digit if at least one of the following is true:@param ch the character to be converted. @param radix the radix. @return the numeric value represented by the character in the specified radix. @see java.lang.Character#forDigit(int int) @see java.lang.Character#isDigit(char)
- The method
isDigitistrueof the character and the Unicode decimal digit value of the character (or its single-character decomposition) is less than the specified radix. In this case the decimal digit value is returned.- The character is one of the uppercase Latin letters
'A'through'Z'and its code is less thanradix + 'A' - 10. In this casech - 'A' + 10is returned.- The character is one of the lowercase Latin letters
'a'through'z'and its code is less thanradix + 'a' - 10. In this casech - 'a' + 10is returned.
Determines the character representation for a specific digit in the specified radix. If the value ofClass Character, int getNumericValue(char)radixis not a valid radix or the value ofdigitis not a valid digit in the specified radix the null character ('\u0000') is returned.The
radixargument is valid if it is greater than or equal toMIN_RADIXand less than or equal toMAX_RADIX. Thedigitargument is valid if0 <=.digit <=radixIf the digit is less than 10 then
'0' + digitis returned. Otherwise the value'a' + digit - 10is returned. @param digit the number to convert to a character. @param radix the radix. @return thecharrepresentation of the specified digit in the specified radix. @see java.lang.Character#MIN_RADIX @see java.lang.Character#MAX_RADIX @see java.lang.Character#digit(char int)
Returns theClass Character, int getType(char)intvalue that the specified Unicodenumericcharactervaluerepresents.ofFor example the characteras'\u216C'(the roman numeral fifty) will return an int with anonnegativevalueintegerof 50.The letters A-Z in their uppercase (
. This is independent of the Unicode specification which does not assign numeric values to these'\u0041'through'\u005A') lowercase ('\u0061'through'\u007A') and full width variant ('\uFF21'through'\uFF3A'and'\uFF41'through'\uFF5A') forms have numeric values from 10 through 35charvalues.If the character does not have a numeric value then -1 is returned. If the character has a numeric value that cannot be represented as a nonnegative integer (for example a fractional value) then -2 is returned. @param ch the character to be converted. @return the numeric value of the character as a nonnegative
intvalue; -2 if the character has a numeric value that is not a nonnegative integer; -1 if the character has no numeric value. @see java.lang.Character#forDigit(int int) @see java.lang.Character#isDigit(char) @sinceJDK11.1
Returns a value indicating a character's general category. @param ch the character to be tested. @return a value of typeClass Character, int hashCode()intrepresenting the character's general category. @see java.lang.Character#COMBINING_SPACING_MARK @see java.lang.Character#CONNECTOR_PUNCTUATION @see java.lang.Character#CONTROL @see java.lang.Character#CURRENCY_SYMBOL @see java.lang.Character#DASH_PUNCTUATION @see java.lang.Character#DECIMAL_DIGIT_NUMBER @see java.lang.Character#ENCLOSING_MARK @see java.lang.Character#END_PUNCTUATION @see java.lang.Character#FINAL_QUOTE_PUNCTUATION @see java.lang.Character#FORMAT @see java.lang.Character#INITIAL_QUOTE_PUNCTUATION @see java.lang.Character#LETTER_NUMBER @see java.lang.Character#LINE_SEPARATOR @see java.lang.Character#LOWERCASE_LETTER @see java.lang.Character#MATH_SYMBOL @see java.lang.Character#MODIFIER_LETTER @see java.lang.Character#MODIFIER_SYMBOL @see java.lang.Character#NON_SPACING_MARK @see java.lang.Character#OTHER_LETTER @see java.lang.Character#OTHER_NUMBER @see java.lang.Character#OTHER_PUNCTUATION @see java.lang.Character#OTHER_SYMBOL @see java.lang.Character#PARAGRAPH_SEPARATOR @see java.lang.Character#PRIVATE_USE @see java.lang.Character#SPACE_SEPARATOR @see java.lang.Character#START_PUNCTUATION @see java.lang.Character#SURROGATE @see java.lang.Character#TITLECASE_LETTER @see java.lang.Character#UNASSIGNED @see java.lang.Character#UPPERCASE_LETTER @sinceJDK11.1
Returns a hash code for this Character. @return a hash code value for this object.
Class Character, boolean isDefined(char)Determines if a characterClass Character, boolean isDigit(char)has ais definedmeaningin Unicode.A character is defined if at least one of the following is true:
@param ch the character to be tested @return
- It has an entry in the
Unicode attributeUnicodeDatatablefile.ItsItvalue ishas a value inthea range'\u3040' <= ch <= '\u9FA5'. Its value isdefinedinby therangeUnicodeData'\uF900' <= ch <= '\uFA2D'file.trueif the character has a defined meaning in Unicode;falseotherwise. @see java.lang.Character#isDigit(char) @see java.lang.Character#isLetter(char) @see java.lang.Character#isLetterOrDigit(char) @see java.lang.Character#isLowerCase(char) @see java.lang.Character#isTitleCase(char) @see java.lang.Character#isUpperCase(char) @sinceJDK11.0.2
Determines if the specified character is a digit.Class Character, boolean isISOControl(char)A character is
considered to bea digit ifit is not in the rangeits general category type provided by'\u2000' <=Character.getType(ch<= '\u2FFF')and its Unicode name contains the wordis"DECIMAL_DIGIT_NUMBER". For a more complete specification that encompasses all Unicode characters that are defined as digits see Gosling Joy and Steele The Java Language Specification.
These are theSome Unicode character rangesof Unicode charactersthatare consideredcontain digits:
0x0030'\u0030'through0x0039'\u0039'ISO-LATIN-1 digits ('0'through'9')0x0660'\u0660'through0x0669'\u0669'Arabic-Indic digits0x06F0'\u06F0'through0x06F9'\u06F9'Extended Arabic-Indic digits0x0966'\u0966'through0x096F'\u096F'Devanagari digits0x09E6 through 0x09EF Bengali digits 0x0A66 through 0x0A6F Gurmukhi digits 0x0AE6 through 0x0AEF Gujarati digits 0x0B66 through 0x0B6F Oriya digits 0x0BE7 through 0x0BEF Tamil digits 0x0C66 through 0x0C6F Telugu digits 0x0CE6 through 0x0CEF Kannada digits 0x0D66 through 0x0D6F Malayalam digits0x0E50'\uFF10'through0x0E59'\uFF19'ThaiFullwidth digits0x0ED0 through 0x0ED9LaodigitsMany0x0F20otherthroughcharacter0x0F29rangesTibetancontain digits0xFF10 through 0xFF19 Fullwidthdigitsas well. @param ch the character to be tested. @returntrueif the character is a digit;falseotherwise. @see java.lang.Character#digit(char int) @see java.lang.Character#forDigit(int int) @see java.lang.Character#getType(char)
Determines if the specified character is an ISO control character. A character is considered to be an ISO control character if its code is in the rangeClass Character, boolean isIdentifierIgnorable(char)'\u0000'through'\u001F'or in the range'\u007F'through'\u009F'. @param ch the character to be tested. @returntrueif the character is an ISO control character;falseotherwise. @see java.lang.Character#isSpaceChar(char) @see java.lang.Character#isWhitespace(char) @sinceJDK11.1
Determines if the specified character should be regarded as an ignorable character in a Java identifier or a Unicode identifier.Class Character, boolean isJavaIdentifierPart(char)The following Unicode characters are ignorable in a Java identifier or a Unicode identifier:
0x0000 through 0x0008
- ISO control characters that
0x000E through 0x001Bare not whitespace
and'\u0000'through0x007F'\u0008''\u000E'through0x009F 0x200C'\u001B''\u007F'through0x200F'\u009F'joincontrols 0x200Aall throughcharacters0x200Ethatbidirectionalhavecontrols 0x206AthethroughFORMAT0x206Fgeneralformatcategorycontrols 0xFEFF zero-width no-break spacevalue @param ch the character to be tested. @returntrueif the character is an ignorable control character that may be part of a Java or Unicode identifier;falseotherwise. @see java.lang.Character#isJavaIdentifierPart(char) @see java.lang.Character#isUnicodeIdentifierPart(char) @sinceJDK11.1
Determines if the specified character may be part of a Java identifier as other than the first character.Class Character, boolean isJavaIdentifierStart(char)A character may be part of a Java identifier if
and only if it is oneany of the following are true:@param ch the character to be tested. @return
- it is a letter
- it is a currency symbol (such as
"'$)"'- it is a connecting punctuation character (such as
"'_)"'.- it is a digit
- it is a numeric letter (such as a Roman numeral character)
- it is a combining mark
- it is a non-spacing mark
anisIdentifierIgnorablereturnstrueignorable controlfor the charactertrueif the character may be part of aUnicodeJava identifier;falseotherwise. @see java.lang.Character#isIdentifierIgnorable(char) @see java.lang.Character#isJavaIdentifierStart(char) @see java.lang.Character#isLetterOrDigit(char) @see java.lang.Character#isUnicodeIdentifierPart(char) @sinceJDK11.1
Determines if the specified character is permissible as the first character in a Java identifier.Class Character, boolean isJavaLetter(char)A character may start a Java identifier if and only if
it isone of the following conditions is true:@param ch the character to be tested. @return
aisLetter(ch) returnstrueletter- getType(ch) returns
LETTER_NUMBER- ch is a currency symbol (such as "$")
- ch is a connecting punctuation character (such as "_").
trueif the character may start a Java identifier;falseotherwise. @see java.lang.Character#isJavaIdentifierPart(char) @see java.lang.Character#isLetter(char) @see java.lang.Character#isUnicodeIdentifierStart(char) @sinceJDK11.1
Determines if the specified character isClass Character, boolean isJavaLetterOrDigit(char)a "Java" letter that is the character ispermissible as the first character inan identifier in thea Javalanguageidentifier.A character
is considered tomaybestart a Javaletteridentifier if and only ifitone of the following isatrue:letter@param ch the character to be tested. @return
the- isLetter(ch)
ASCIIreturnsdollartruesigncharactergetType(ch) returns'$'LETTER_NUMBERorthech is a currency symbol (such as "$")- ch is
underscorea connecting punctuation character'(such as "_'").trueif the characterismay start a Javaletteridentifier;falseotherwise. @see java.lang.Character#isJavaLetterOrDigit(char) @see java.lang.Character#isJavaIdentifierStart(char) @see java.lang.Character#isJavaLetterOrDigitisJavaIdentifierPart(char) @see java.lang.Character#isLetter(char) @see java.lang.Character#isLetterOrDigit(char) @see java.lang.Character#isUnicodeIdentifierStart(char) @sinceJDK1.01.202 @deprecated Replaced by isJavaIdentifierStart(char).
Determines if the specified characterClass Character, boolean isLetter(char)is a "Java" letter or digit that is themaycharacter isbepermissible aspart of anon-initial characterJavain an identifier inidentifier as other than theJavafirstlanguagecharacter.A character
ismayconsidered to bebe part of a Javaletter or digitidentifier if and only if any of the following are true:it is a letter
a digit the ASCII dollar signit is a currency symbol character(such as'$')ortheit is a connectingunderscorepunctuation character (such as'_')it is a digit it is a numeric letter (such as a Roman numeral character) it is a combining mark it is a non-spacing mark . @param ch the character to be tested. @return isIdentifierIgnorablereturnstruefor the charactertrueif the characteris a Java letter ormay be part of adigitJava identifier;falseotherwise. @see java.lang.Character#isJavaIdentifierPartisJavaLetter(char) @see java.lang.Character#isJavaLetterisJavaIdentifierStart(char) @see java.lang.Character#isJavaIdentifierPart(char) @see java.lang.Character#isLetter(char) @see java.lang.Character#isLetterOrDigit(char) @see java.lang.Character#isUnicodeIdentifierPart(char) @since JDK1see java.0lang.Character#isIdentifierIgnorable(char) @since 1.202 @deprecated Replaced by isJavaIdentifierPart(char).
Determines if the specified character is a letter.Class Character, boolean isLetterOrDigit(char)For a more complete specification that encompasses all Unicode characters see Gosling Joy and Steele The Java Language Specification.A character is considered to be a letter if
and only if it is specifieditsto be a lettergeneral category type provided bythe Unicode 2Character.0 standardgetType(category "Lu" "Ll" "Lt" "Lm" or "Lo" in the Unicode specification data filech). Note thatmost ideographic characters areis any of theconsideredfollowing:to beNot all letters have case
lettersUPPERCASE_LETTER(category"Lo")LOWERCASE_LETTERforthisTITLECASE_LETTERpurpose.MODIFIER_LETTERNotealsoOTHER_LETTERthat not: many.UnicodeMany characters are letters but are neither uppercase nor lowercase nor titlecase. @param ch the character to be tested. @returntrueif the character is a letter;falseotherwise. @see java.lang.Character#isDigit(char) @see java.lang.Character#isJavaIdentifierStart(char) @see java.lang.Character#isJavaLetter(char) @see java.lang.Character#isJavaLetterOrDigit(char) @see java.lang.Character#isLetterOrDigit(char) @see java.lang.Character#isLowerCase(char) @see java.lang.Character#isTitleCase(char) @see java.lang.Character#isUnicodeIdentifierStart(char) @see java.lang.Character#isUpperCase(char)
Determines if the specified character is a letter or digit.Class Character, boolean isLowerCase(char)For a more complete specification that encompasses all Unicode characters see Gosling Joy and Steele The Java Language Specification.A character is considered to be a letter
if and only if it is specified to be a letteroradigitby the Unicode 2.0 standard (category "Lu" "Ll" "Lt" "Lm" "Lo" or "Nd" in the Unicode specification data file). In other words isLetterOrDigit is true of a character if and onlyif eitherCharacter.isLetteroris true of the(charcharacterch)Character.isDigit(charreturnsisch)trueoffor the character. @param ch the character to be tested. @returntrueif the character is a letter or digit;falseotherwise. @see java.lang.Character#isDigit(char) @see java.lang.Character#isJavaIdentifierPart(char) @see java.lang.Character#isJavaLetter(char) @see java.lang.Character#isJavaLetterOrDigit(char) @see java.lang.Character#isLetter(char) @see java.lang.Character#isUnicodeIdentifierPart(char) @sinceJDK11.0.2
Determines if the specified character is a lowercase character.Class Character, boolean isSpace(char)A character is lowercase if
it is notitsin the rangegeneral category type'\u2000'providedthroughby'\u2FFF'Character.getType(ch)the Unicode attribute table does not specify a mapping to lowercase for the character and at least one of the followingistrue: The attribute table specifies a mapping to uppercase for the character. The name for the character contains the words "SMALLLOWERCASE_LETTER". The name for the character contains the words "SMALL LIGATURE".
A character is considered to be lowercase if and only if itTheis specified to befollowing are examples of lowercaseby the Unicode 2.0 standard (category "Ll" in the Unicode specification data file). Of the ISO-LATIN-1characters(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'Many other Unicode characters are lowercase too.
@param ch the character to be tested. @return
trueif the character is lowercase;falseotherwise. @see java.lang.Character#isLowerCase(char) @see java.lang.Character#isTitleCase(char) @see java.lang.Character#toLowerCase(char) @see java.lang.Character#getType(char)
Determines if the specified character is ISO-LATIN-1 white space. This method returnsClass Character, boolean isSpaceChar(char)truefor the following five characters only:@param ch the character to be tested. @return
'\t''\u0009'HORIZONTAL TABULATION'\n''\u000A'NEW LINE'\f''\u000C'FORM FEED'\r''\u000D'CARRIAGE RETURN'''\u0020'SPACEtrueif the character is ISO-LATIN-1 white space;falseotherwise. @see java.lang.Character#isSpaceChar(char) @see java.lang.Character#isWhitespace(char) @deprecated Replaced by isWhitespace(char).
Determines if the specified character is a Unicode space character. A character is considered to be a space character if and only if it is specified to be a space character by the UnicodeClass Character, boolean isTitleCase(char)2standard.0standardThis(categorymethod returns true if the character's"Zs"general"Zlcategory typeoris"Zp"anyinof theUnicodefollowing:specification data@param ch the character to be tested. @return
file).SPACE_SEPARATORLINE_SEPARATORPARAGRAPH_SEPARATORtrueif the character is a space character;falseotherwise. @see java.lang.Character#isWhitespace(char) @sinceJDK11.1
Determines if the specified character is a titlecase character.Class Character, boolean isUnicodeIdentifierPart(char)A character is
considered to bea titlecaseif and onlycharacter ifit isitsspecified to be titlecasegeneral category type provided bythe Unicode 2Character.0 standardgetType(category "Lt" in the Unicode specificationch)dataisfile)TITLECASE_LETTER.
The printed representations of four UnicodeSome characters look like pairs of Latin letters. For example there is an uppercase letter that looks like "LJ" and has a corresponding lowercase letter that looks like "lj". A third form which looks like "Lj" is the appropriate form to use when rendering a word in lowercase with initial capitals as for a book title.These are some of the Unicode characters for which this method returns
true:
LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARONLATIN CAPITAL LETTER L WITH SMALL LETTER JLATIN CAPITAL LETTER N WITH SMALL LETTER JLATIN CAPITAL LETTER D WITH SMALL LETTER ZMany other Unicode characters are titlecase too.
@param ch the character to be tested. @return
trueif the character is titlecase;falseotherwise. @see java.lang.Character#isLowerCase(char) @see java.lang.Character#isUpperCase(char) @see java.lang.Character#toTitleCase(char) @see java.lang.Character#getType(char) @sinceJDK11.0.2
Determines if the specified character may be part of a Unicode identifier as other than the first character.Class Character, boolean isUnicodeIdentifierStart(char)A character may be part of a Unicode identifier if and only if
it isone of the following statements is true:@param ch the character to be tested. @return
- it is a letter
- it is a connecting punctuation character (such as
"'_)"'.- it is a digit
- it is a numeric letter (such as a Roman numeral character)
- it is a combining mark
- it is a non-spacing mark
anisIdentifierIgnorablereturnstrueignorable controlfor this character.trueif the character may be part of a Unicode identifier;falseotherwise. @see java.lang.Character#isIdentifierIgnorable(char) @see java.lang.Character#isJavaIdentifierPart(char) @see java.lang.Character#isLetterOrDigit(char) @see java.lang.Character#isUnicodeIdentifierStart(char) @sinceJDK11.1
Determines if the specified character is permissible as the first character in a Unicode identifier.Class Character, boolean isUpperCase(char)A character may start a Unicode identifier if and only if
itone of the following conditions isatrue:
- isLetter(ch) returns
true- getType(ch)
letterreturnsLETTER_NUMBER. @param ch the character to be tested. @returntrueif the character may start a Unicode identifier;falseotherwise. @see java.lang.Character#isJavaIdentifierStart(char) @see java.lang.Character#isLetter(char) @see java.lang.Character#isUnicodeIdentifierPart(char) @sinceJDK11.1
Determines if the specified character is an uppercase character.Class Character, boolean isWhitespace(char)A character is uppercase if
it is notitsin the rangegeneral category type'\u2000'providedthroughby'\u2FFF'Character.getType(ch)the Unicode attribute table does not specify a mapping to uppercase for the character and at least one of the followingistrue: The attribute table specifies a mapping to lowercase for the character. The name for the character contains the words "CAPITALUPPERCASE_LETTER". The name for the character contains the words "CAPITAL LIGATURE".
Of the ISO-LATIN-1 characters (character codes 0x0000 through 0x00FF) theThe following are examples of uppercase characters: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'Many other Unicode characters are uppercase too.
@param ch the character to be tested. @return
trueif the character is uppercase;falseotherwise. @see java.lang.Character#isLowerCase(char) @see java.lang.Character#isTitleCase(char) @see java.lang.Character#toUpperCase(char) @see java.lang.Character#getType(char) @since 1.0
Determines if the specified character is white space according to Java. A character isClass Character, char toLowerCase(char)considered to bea Java whitespace character if and only if it satisfies one of the following criteria:@param ch the character to be tested. @return
- It is a Unicode space
separatorcharacter (categorySPACE_SEPARATOR"Zs"LINE_SEPARATORorPARAGRAPH_SEPARATOR) but is not also anonon-breakbreaking space ('\u00A0'or'\uFEFF). It is a Unicode line separator (category "Zl"). It isu2007'a Unicode paragraph separator (category "Zp"'\u202F').- It is
'\u0009'HORIZONTAL TABULATION.- It is
'\u000A'LINE FEED.- It is
'\u000B'VERTICAL TABULATION.- It is
'\u000C'FORM FEED.- It is
'\u000D'CARRIAGE RETURN.- It is
'\u001C'FILE SEPARATOR.- It is
'\u001D'GROUP SEPARATOR.- It is
'\u001E'RECORD SEPARATOR.- It is
'\u001F'UNIT SEPARATOR.trueif the character is a Java whitespace character;falseotherwise. @see java.lang.Character#isSpaceChar(char) @sinceJDK11.1
Class Character, String toString()TheConvertsgiven character is mapped to its lowercase equivalent; ifthe characterhas no lowercase equivalent the character itself is returned. A character hasargumentato lowercaseequivalent if and only if ausinglowercasecase mappingis specified for the characterinformationinfrom theUnicode attributeUnicodeDatatablefile.Note that
some Unicode characters in the range '\u2000' to'\u2FFF'Character.isLowerCase(Character.toLowerCase(ch))have lowercase mappings; this methoddoesmap such characters tonottheir lowercasealways returnequivalentstrueeven though the methodfor some ranges ofisUpperCasecharactersdoes not returnparticularly those thattruearefor such characterssymbols or ideographs. @param ch the character to be converted. @return the lowercase equivalent of the character if any; otherwise the character itself. @see java.lang.Character#isLowerCase(char) @see java.lang.Character#isUpperCase(char) @see java.lang.Character#toTitleCase(char) @see java.lang.Character#toUpperCase(char)
Returns aClass Character, char toTitleCase(char)Stringobject representing thischaracter's value. Converts thisCharacterobject to a'sstringvalue. The result is a stringwhoseof lengthis1. Thestring'swhose sole component is the primitivecharvalue represented by thisCharacterobject. @return a string representation of this object.
Converts the character argument to titlecaseClass Character, char toUpperCase(char). Acharacter has a titlecase equivalent if andusing case mapping information from the UnicodeDataonlyfile.ifIf atitlecasecharactermapping is specified for the character in the Unicode attributehas no explicit titlecase mapping and is not itself atable.titlecaseNote that some Unicode characters in the rangechar according to UnicodeData then the uppercase mapping is'\u2000'returnedthroughas'\u2FFF'anhaveequivalent titlecasemappings; thismapping.method doesIf themapcharsuch characters to theirargument is already a titlecaseequivalents even though the methodisTitleCasechardoes notthereturnsametruecharfor suchvalue willcharactersbe returned.
There are only four Unicode characters that are truly titlecase formsNote thatare distinct from uppercase formsCharacter.As a rule if a character has no true titlecase equivalent but does have an uppercase mapping then the Unicode 2isTitleCase(Character.0 attribute table specifies atoTitleCase(ch))titlecase mapping that isdoes not always returnthetruesame as the uppercase mappingfor some ranges of characters. @param ch the character to be converted. @return the titlecase equivalent of the character if any; otherwise the character itself. @see java.lang.Character#isTitleCase(char) @see java.lang.Character#toLowerCase(char) @see java.lang.Character#toUpperCase(char) @sinceJDK11.0.2
Converts the character argument to uppercaseClass Character, byte COMBINING_SPACING_MARK. A character has an uppercase equivalent if and onlyif anusinguppercasecase mappingis specified for the characterinformationinfrom theUnicode attributeUnicodeDatatablefile.Note that
some Unicode characters in the range '\u2000' to'\u2000FFF'Character.isUpperCase(Character.toUpperCase(ch))have uppercase mappings; this methoddoesmap such characters tonottheir titlecasealways returnequivalentstrueeven though the methodfor some ranges ofisLowerCasecharactersdoes not returnparticularly those thattruearefor such characterssymbols or ideographs. @param ch the character to be converted. @return the uppercase equivalent of the character if any; otherwise the character itself. @see java.lang.Character#isLowerCase(char) @see java.lang.Character#isUpperCase(char) @see java.lang.Character#toLowerCase(char) @see java.lang.Character#toTitleCase(char)
Class Character, byte CONNECTOR_PUNCTUATIONPublicGeneraldata forcategoryenumerated"Mc"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte CONTROLPublicGeneraldata forcategoryenumerated"Pc"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte CURRENCY_SYMBOLPublicGeneraldata forcategoryenumerated"Cc"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte DASH_PUNCTUATIONPublicGeneraldata forcategoryenumerated"Sc"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte DECIMAL_DIGIT_NUMBERPublicGeneraldata forcategoryenumerated"Pd"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte ENCLOSING_MARKPublicGeneraldata forcategoryenumerated"Nd"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte END_PUNCTUATIONPublicGeneraldata forcategoryenumerated"Me"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte FORMATPublicGeneraldata forcategoryenumerated"Pe"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte LETTER_NUMBERPublicGeneraldata forcategoryenumerated"Cf"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte LINE_SEPARATORPublicGeneraldata forcategoryenumerated"Nl"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte LOWERCASE_LETTERPublicGeneraldata forcategoryenumerated"Zl"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte MATH_SYMBOLPublicGeneraldata forcategoryenumerated"Ll"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, int MAX_RADIXPublicGeneraldata forcategoryenumerated"Sm"Unicode general category typesin the Unicode specification. @sinceJDK11.1
The maximum radix available for conversion to and fromClass Character, char MAX_VALUEStringsstrings. The constant value of this field is the largest value permitted for the radix argument in radix-conversion methods such as thedigitmethod theforDigitmethod and thetoStringmethod of classInteger. @see java.lang.Character#digit(char int) @see java.lang.Character#forDigit(int int) @see java.lang.Integer#toString(int int) @see java.lang.Integer#valueOf(java.lang.String)
The constant value of this field is the largest value of typeClass Character, int MIN_RADIXchar'\uFFFF'. @sinceJDK11.0.2
The minimum radix available for conversion to and fromClass Character, char MIN_VALUEStringsstrings. The constant value of this field is the smallest value permitted for the radix argument in radix-conversion methods such as thedigitmethod theforDigitmethod and thetoStringmethod of classInteger. @see java.lang.Character#digit(char int) @see java.lang.Character#forDigit(int int) @see java.lang.Integer#toString(int int) @see java.lang.Integer#valueOf(java.lang.String)
The constant value of this field is the smallest value of typeClass Character, byte MODIFIER_LETTERchar'\u0000'. @sinceJDK11.0.2
Class Character, byte MODIFIER_SYMBOLPublicGeneraldata forcategoryenumerated"Lm"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte NON_SPACING_MARKPublicGeneraldata forcategoryenumerated"Sk"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte OTHER_LETTERPublicGeneraldata forcategoryenumerated"Mn"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte OTHER_NUMBERPublicGeneraldata forcategoryenumerated"Lo"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte OTHER_PUNCTUATIONPublicGeneraldata forcategoryenumerated"No"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte OTHER_SYMBOLPublicGeneraldata forcategoryenumerated"Po"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte PARAGRAPH_SEPARATORPublicGeneraldata forcategoryenumerated"So"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte PRIVATE_USEPublicGeneraldata forcategoryenumerated"Zp"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte SPACE_SEPARATORPublicGeneraldata forcategoryenumerated"Co"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte START_PUNCTUATIONPublicGeneraldata forcategoryenumerated"Zs"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte SURROGATEPublicGeneraldata forcategoryenumerated"Ps"Unicode general category typesin the Unicode specification. @sinceJDK11.1
Class Character, byte TITLECASE_LETTERPublicGeneraldata forcategoryenumerated"Cs"Unicode general category typesin the Unicode specification. @sinceJDK11.1
PublicGeneraldata for