public class Boolean
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FALSE
The character representation of a
false value. |
static java.lang.String |
TRUE
The character representation of a
true value. |
| Constructor and Description |
|---|
Boolean() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
parse(java.lang.String rep)
Converts a boolean string representation into a boolean value.
|
static boolean |
parse(java.lang.String rep,
boolean deflt)
Converts a boolean string representation into a boolean value.
|
static java.lang.String |
print(boolean val)
Converts a boolean value into a strict representation of it.
|
public static final java.lang.String TRUE
true value.public static final java.lang.String FALSE
false value.public static java.lang.String print(boolean val)
val - is the boolean input valuepublic static boolean parse(java.lang.String rep)
false. Other valid string representations
of true include:
true yes onAny other string representation is taken to mean
falserep - is the input string representing a boolean value.public static boolean parse(java.lang.String rep,
boolean deflt)
false. Other valid string representations
of true include:
true yes onOther valid string representations of
false include,
besides the numerical zero:
false no offAny other string representation is taken to mean the boolean value indicated by the paramater deflt.
rep - is the input string representing a boolean value.deflt - is the deflt value to use in case rep does not
represent a valid boolean value.