|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.util.ref.RefCharacter
public final class RefCharacter
Reference Character is the same as Character
but allows you to set the character without creating a new Character
.
Field Summary | |
---|---|
static int |
MAX_RADIX
The maximum radix available for conversion to and from String s. |
static char |
MAX_VALUE
The constant value of this field is the largest value of type char. |
static int |
MIN_RADIX
The minimum radix available for conversion to and from String s. |
static char |
MIN_VALUE
The constant value of this field is the smallest value of type char. |
Constructor Summary | |
---|---|
RefCharacter()
Create a new RefCharacter set to the default of '\0'. |
|
RefCharacter(char value)
Create a new RefCharacter using a char primitive. |
|
RefCharacter(java.lang.Character value)
Create a new RefCharacter using a Character . |
|
RefCharacter(java.lang.Character value,
boolean fixed)
Create a new RefCharacter using a Character . |
|
RefCharacter(char value,
boolean fixed)
Create a new RefCharacter using a char primitive. |
Method Summary | |
---|---|
char |
charValue()
Returns The value of this RefCharacter object as a char primitive. |
RefCharacter |
clone()
Create a clone of the current object. |
static int |
digit(char ch,
int radix)
Returns the numeric value of the character ch in the specified radix. |
boolean |
equals(java.lang.Object obj)
Returns true if and only if the argument is not null and is a RefCharacter or Character object that represents the same char value as this object. |
int |
hashCode()
Returns a hash code for this RefCharacter object. |
static boolean |
isDigit(char ch)
Determines if the specified character is a digit. |
static boolean |
isLowerCase(char ch)
Determines if the specified character is a lowercase character. |
static boolean |
isUpperCase(char ch)
Determines if the specified character is an uppercase character. |
RefCharacter |
setValue(char value)
Set the value of this RefCharacter object with a char primitive. |
RefCharacter |
setValue(java.lang.Character value)
Set the value of this RefCharacter object with a Character . |
static char |
toLowerCase(char ch)
The given character is mapped to its lowercase equivalent; if the character has no lowercase equivalent, the character itself is returned. |
java.lang.String |
toString()
Returns a String object representing this RefCharacter 's value. |
static char |
toUpperCase(char ch)
Converts the character argument to uppercase; if the character has no lowercase equivalent, the character itself is returned. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int MAX_RADIX
String
s.
public static final char MAX_VALUE
public static final int MIN_RADIX
String
s.
public static final char MIN_VALUE
Constructor Detail |
---|
public RefCharacter()
RefCharacter
set to the default of '\0'.
public RefCharacter(char value)
RefCharacter
using a char primitive.
value
- The char primitive to set this RefCharacter
with.public RefCharacter(char value, boolean fixed)
RefCharacter
using a char primitive.
value
- The char primitive to set this RefCharacter
with.fixed
- If this item is read only and cannot be modified.public RefCharacter(java.lang.Character value)
RefCharacter
using a Character
.
value
- The Character
to set this RefCharacter
with.public RefCharacter(java.lang.Character value, boolean fixed)
RefCharacter
using a Character
.
value
- The Character
to set this RefCharacter
with.fixed
- If this item is read only and cannot be modified.Method Detail |
---|
public char charValue()
RefCharacter
object as a char primitive.
public RefCharacter setValue(char value)
RefCharacter
object with a char primitive.
value
- The primitive char value to set this object.
public RefCharacter setValue(java.lang.Character value)
RefCharacter
object with a Character
.
value
- The Character
value to set this object.
public boolean equals(java.lang.Object obj)
RefCharacter
or Character
object that represents the same char value as this object.
equals
in class java.lang.Object
obj
- The object to compare with.
RefCharacter
objects represent the same value; false otherwise.public int hashCode()
RefCharacter
object.
hashCode
in class java.lang.Object
public java.lang.String toString()
String
object representing this RefCharacter
's value.
toString
in class java.lang.Object
public static int digit(char ch, int radix)
ch
- The character to be converted.radix
- The radix.
public static boolean isDigit(char ch)
ch
- The character to be tested.
public static boolean isLowerCase(char ch)
ch
- The character to be tested.
public static boolean isUpperCase(char ch)
ch
- The character to be tested.
public static char toLowerCase(char ch)
ch
- The character to be converted.
public static char toUpperCase(char ch)
ch
- The character to be converted.
public RefCharacter clone()
RefCharacter
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |