|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Object | +--com.braju.beta.lang.BooleanVariable
Wraps a boolean 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 boolean 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 boolean 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 boolean to a string with specified minimum width, this constant says that the result should be aligned to the right. |
static int |
NO_FLAGS
When converting a boolean 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 | |
BooleanVariable()
|
|
BooleanVariable(boolean b)
Wraps a boolean into an object just like java.lang.Boolean does, but provides some additional methods. |
|
| Method Summary | |
java.lang.Object |
get()
|
static void |
main(java.lang.String[] args)
|
static BooleanVariable[] |
newArray(int length)
Creates an array of length instance of this class. |
void |
set(boolean b)
Set a new value [...]. |
void |
set(java.lang.Object o)
|
static java.lang.String |
toChoiseString(boolean b,
java.lang.String True,
java.lang.String False)
Convert a boolean into a string with the specifed true- and false-strings [...]. |
static java.lang.String |
toChoiseString(boolean b,
java.lang.String True,
java.lang.String False,
int minWidth,
int flags)
Convert a boolean into a string with the specifed true- and false-strings and minimum width and alignment. |
static java.lang.String |
toString(boolean b)
Convert a boolean into a string. |
static java.lang.String |
toString(boolean b,
int minWidth,
int flags)
Convert a boolean into a string with specified minimum width and alignment according to the flags-parameter [...]. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, 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 java.lang.Class TYPE
| Constructor Detail |
public BooleanVariable()
public BooleanVariable(boolean b)
| Method Detail |
public static BooleanVariable[] newArray(int length)
public void set(boolean b)
public void set(java.lang.Object o)
set in interface Variablepublic java.lang.Object get()
get in interface Variablepublic static java.lang.String toString(boolean b)
public static java.lang.String toString(boolean b,
int minWidth,
int flags)
public static java.lang.String toChoiseString(boolean b,
java.lang.String True,
java.lang.String False)
public static java.lang.String toChoiseString(boolean b,
java.lang.String True,
java.lang.String False,
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 | |||||||||||