Monday 11 March 2013

java.lang Character


java.lang
Character

Declaration
public final class Character
java.lang.Object
|
+--java.lang.Character
Description
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.




Fields
static int MAX_RADIX
static char MAX_VALUE
static int MIN_RADIX
static char MIN_VALUE
Constructors
Character(char value)
Methods
char charValue()
static int digit(char ch, int radix)
boolean equals(Object obj)
int hashCode()
static boolean isDigit(char ch)
static boolean isLowerCase(char ch)
static boolean isUpperCase(char ch)
static char toLowerCase(char ch)
String toString()
static char toUpperCase(char ch)


Methods inherited from class Object
getClass(), notify(), notifyAll(), wait(), wait(), wait()


Fields
MIN_RADIX
Declaration:
public static final int MIN_RADIX
Description:
The minimum radix available for conversion to and from Strings.
See Also: Integer.toString(int, int), Integer.valueOf(String)
MAX_RADIX
Declaration:
public static final int MAX_RADIX
Description:
The maximum radix available for conversion to and from Strings.
See Also: Integer.toString(int, int), Integer.valueOf(String)
MIN_VALUE
Declaration:
public static final char MIN_VALUE
Description:
The constant value of this field is the smallest value of type char.
Since: JDK1.0.2
MAX_VALUE
Declaration:
public static final char MAX_VALUE
Description:
The constant value of this field is the largest value of type char.
Since: JDK1.0.2
Constructors
Character(char)
Declaration:
public Character(char value)


charValue()
Description:
Constructs a Character object and initializes it so that it represents the primitive value argument.
Parameters:
value - value for the new Character object.
Methods
charValue()
Declaration:
public char charValue()
Description:
Returns the value of this Character object.
Returns: the primitive char value represented by this object.
hashCode()
Declaration:
public int hashCode()
Description:
Returns a hash code for this Character.
Overrides: hashCode in class Object
Returns: a hash code value for this object.
equals(Object)
Declaration:
public boolean equals(java.lang.Object obj)
Description:
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.
Overrides: equals in class Object
Parameters:
obj - the object to compare with.
Returns: true if the objects are the same; false otherwise.
toString()
Declaration:
public java.lang.String toString()
Description:
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.
Overrides: toString in class Object
Returns: a string representation of this object.





No comments:

Post a Comment