java.lang
Class Character

java.lang.Object
  extended byjava.lang.Character

public class Character
extends Object

Under Ewe the Character class is ONLY used for certain character operation and tests, and for storing/retrieving a character value


Field Summary
static int MAX_RADIX
          Largest value allowed for radix arguments in Java.
static char MAX_VALUE
          The maximum value the char data type can hold.
static int MIN_RADIX
          Smallest value allowed for radix arguments in Java.
static char MIN_VALUE
          The minimum value the char data type can hold.
static Class TYPE
          Class object representing the primitive char data type.
 
Constructor Summary
Character(char value)
           
 
Method Summary
 char charValue()
          Return the character this object represents.
static int digit(char ch, int radix)
           
 boolean equals(Object other)
          Returns if this object is considered equal to the other object.
static char forDigit(int digit, int radix)
           
 int hashCode()
          Returns a hashCode for the object.
static boolean isDigit(char ch)
           
static boolean isLetter(char ch)
           
static boolean isLetterOrDigit(char ch)
           
static boolean isLowerCase(char ch)
           
static boolean isSpaceChar(char ch)
           
static boolean isTitleCase(char ch)
           
static boolean isUpperCase(char ch)
           
static boolean isWhitespace(char ch)
           
static char toLowerCase(char ch)
           
 String toString()
          Converts the wrapped character into a String.
static String toString(char ch)
          Returns a String of length 1 representing the specified character.
static char toTitleCase(char ch)
           
static char toUpperCase(char ch)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass
 

Field Detail

MIN_RADIX

public static final int MIN_RADIX
Smallest value allowed for radix arguments in Java. This value is 2.

See Also:
digit(char, int), forDigit(int, int), Integer.toString(int, int), Integer.valueOf(String), Constant Field Values

MAX_RADIX

public static final int MAX_RADIX
Largest value allowed for radix arguments in Java. This value is 36.

See Also:
digit(char, int), forDigit(int, int), Integer.toString(int, int), Integer.valueOf(String), Constant Field Values

MIN_VALUE

public static final char MIN_VALUE
The minimum value the char data type can hold. This value is '\\u0000'.

See Also:
Constant Field Values

MAX_VALUE

public static final char MAX_VALUE
The maximum value the char data type can hold. This value is '\\uFFFF'.

See Also:
Constant Field Values

TYPE

public static final Class TYPE
Class object representing the primitive char data type.

Since:
1.1
Constructor Detail

Character

public Character(char value)
Method Detail

charValue

public char charValue()
Return the character this object represents.

Returns:

equals

public boolean equals(Object other)
Description copied from class: Object
Returns if this object is considered equal to the other object.

Overrides:
equals in class Object
Parameters:
other - Another object to compare to.
Returns:
true if this object is considered equal to the other object.

hashCode

public int hashCode()
Description copied from class: Object
Returns a hashCode for the object. The general contract of hashCode is:
  • An object must return the same hash code for its entire existence.
  • If two objects are considered equal by the equals() method, they should return the same hash code. Not all Objects will do this and you should only use hashCode() from Objects which declare an overrided version of hashCode(). The only Objects which provide consistent and correct hash codes under Ewe are Object, String and Class.

    Overrides:
    hashCode in class Object

  • isUpperCase

    public static boolean isUpperCase(char ch)

    isLowerCase

    public static boolean isLowerCase(char ch)

    isSpaceChar

    public static boolean isSpaceChar(char ch)

    isWhitespace

    public static boolean isWhitespace(char ch)

    isDigit

    public static boolean isDigit(char ch)

    isLetter

    public static boolean isLetter(char ch)

    isLetterOrDigit

    public static boolean isLetterOrDigit(char ch)

    isTitleCase

    public static boolean isTitleCase(char ch)

    toUpperCase

    public static char toUpperCase(char ch)

    toLowerCase

    public static char toLowerCase(char ch)

    toTitleCase

    public static char toTitleCase(char ch)

    toString

    public String toString()
    Converts the wrapped character into a String.

    Overrides:
    toString in class Object
    Returns:
    a String containing one character -- the wrapped character of this instance

    toString

    public static String toString(char ch)
    Returns a String of length 1 representing the specified character.

    Parameters:
    ch - the character to convert
    Returns:
    a String containing the character
    Since:
    1.4

    forDigit

    public static char forDigit(int digit,
                                int radix)

    digit

    public static int digit(char ch,
                            int radix)