edu.isi.pegasus.common.util
public class Boolean extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FALSE
The character representation of a
false value. |
static String |
TRUE
The character representation of a
true value. |
| Constructor and Description |
|---|
Boolean() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
parse(String rep)
Converts a boolean string representation into a boolean value.
|
static boolean |
parse(String rep,
boolean deflt)
Converts a boolean string representation into a boolean value.
|
static String |
print(boolean val)
Converts a boolean value into a strict representation of it.
|
public static final String TRUE
true value.public static final String FALSE
false value.public static String print(boolean val)
val - is the boolean input valuepublic static boolean parse(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(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.