|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gjt.rec.util.Booleans
A toolbox of tools that work with boolean and Boolean.
Boolean
Nested Class Summary | |
static class |
Booleans.FlagType
|
Field Summary | |
static String |
REVISION
|
Method Summary | |
static Boolean |
parse(String flagString)
Works out the Boolean value represented by a particular string. |
static Boolean |
parse(String flagString,
Booleans.FlagType flagType)
Works out the Boolean value represented by a particular string using a particular flag convention. |
static boolean |
parseBoolean(String flagString)
Works out the boolean value represented by a particular string. |
static boolean |
parseBoolean(String flagString,
Booleans.FlagType flagType)
Works out the boolean value represented by a particular string using a particular flag convention. |
static String |
toString(boolean booleanValue,
Booleans.FlagType flagType)
Converts a particular boolean value to its string representation using a particular flag convention. |
static String |
toString(Boolean b,
Booleans.FlagType flagType)
Converts a particular Boolean value to its string representation using a particular flag convention. |
static Boolean |
wrap(boolean booleanValue)
Returns an instance of Boolean representing a particular boolean value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String REVISION
Method Detail |
public static Boolean wrap(boolean booleanValue)
booleanValue
- the boolean value to wrap
public static Boolean parse(String flagString) throws ParseException
flagString
- the string in which to look for a boolean value
representation
ParseException
- if flagString represents neither true,
false nor nullpublic static Boolean parse(String flagString, Booleans.FlagType flagType) throws ParseException
flagString
- the string in which to look for a boolean value
representationflagType
- the flag convention to use when parsing the boolean
string representation. true or false values in other
conventions will result in a ParseException
NullPointerException
- if flagType is null
ParseException
- if flagString represents neither true,
false nor nullpublic static boolean parseBoolean(String flagString) throws ParseException
flagString
- the string in which to look for a boolean value
representation
NullPointerException
- if flagString is null
ParseException
- if flagString represents neither true
nor falsepublic static boolean parseBoolean(String flagString, Booleans.FlagType flagType) throws ParseException
flagString
- the string in which to look for a boolean value
representationflagType
- the flag convention to use when parsing the boolean
string representation. true or false values in other
conventions will result in a ParseException
NullPointerException
- if flagString is null
ParseException
- if flagString represents neither true
nor falsepublic static String toString(Boolean b, Booleans.FlagType flagType)
flagType
- the flag convention to useb
- the value to convert
NullPointerException
- if flagType is nullpublic static String toString(boolean booleanValue, Booleans.FlagType flagType)
flagType
- the flag convention to usebooleanValue
- the value to convert
NullPointerException
- if flagType is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |