|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--com.braju.beta.lang.CharacterVariable
Wraps a char and provides methods to convert the value to and from several datatypes [JDK1.0.2 compatible].
| Field Summary | |
static int |
ALIGN_CENTER
When converting a character to a string with specified minimum width, this constant says that the result should be aligned to the center. |
static int |
ALIGN_LEFT
When converting a character to a string with specified minimum width, this constant says that the result should be aligned to the left. |
static int |
ALIGN_RIGHT
When converting a character to a string with specified minimum width, this constant says that the result should be aligned to the right. |
static int |
LEADING_ZEROS
When converting a character to a string with a specified minimum width, this constant says that the result should be filled up width leading zero, i.e. |
static int |
NO_FLAGS
When converting a character to a string with specified minimum width, this constant says that the default format should be used [...]. |
static java.lang.Class |
TYPE
The class of this static object [...]. |
| Constructor Summary | |
CharacterVariable()
|
|
CharacterVariable(char ch)
Wraps a character into an object just like java.lang.Character does, but provides some additional methods. |
|
| Method Summary | |
char |
charValue()
Get the character. |
java.lang.Object |
get()
|
static void |
main(java.lang.String[] args)
|
static CharacterVariable[] |
newArray(int length)
Creates an array of length instance of this class. |
void |
set(char ch)
Set a new value [...]. |
void |
set(java.lang.Object o)
|
static java.lang.String |
toEscapeString(char value)
Convert a character into a readible escape-String, e.g. |
static java.lang.String |
toEscapeString(char value,
int minWidth,
int flags)
Convert a character into a readible escape-String, e.g. |
java.lang.String |
toString()
Return the wrapped character as a String. |
static java.lang.String |
toString(char ch)
Convert a character into a string. |
static java.lang.String |
toString(char ch,
int minWidth,
int flags)
Convert a character into a string with specified minimum width and alignment according to the flags-parameter [...]. |
static java.lang.String |
toUTFString(char value)
Convert a character into a readible UTF-String, e.g. |
static java.lang.String |
toUTFString(char value,
int minWidth,
int flags)
Convert a character into a readible UTF-String, e.g. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NO_FLAGS
public static final int ALIGN_LEFT
public static final int ALIGN_CENTER
public static final int ALIGN_RIGHT
public static final int LEADING_ZEROS
public static final java.lang.Class TYPE
| Constructor Detail |
public CharacterVariable()
public CharacterVariable(char ch)
| Method Detail |
public static CharacterVariable[] newArray(int length)
public void set(char ch)
public void set(java.lang.Object o)
set in interface Variablepublic java.lang.Object get()
get in interface Variablepublic char charValue()
public static java.lang.String toString(char ch)
public static java.lang.String toString(char ch,
int minWidth,
int flags)
public java.lang.String toString()
toString in class java.lang.Objectpublic static java.lang.String toUTFString(char value)
public static java.lang.String toUTFString(char value,
int minWidth,
int flags)
public static java.lang.String toEscapeString(char value)
public static java.lang.String toEscapeString(char value,
int minWidth,
int flags)
public static void main(java.lang.String[] args)
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||