org.gjt.rec.util
Class Booleans.FlagType
java.lang.Object
|
+--org.gjt.rec.util.Enum
|
+--org.gjt.rec.util.Booleans.FlagType
- All Implemented Interfaces:
- Comparable, Serializable
- Enclosing class:
- Booleans
- public static final class Booleans.FlagType
- extends Enum
- See Also:
- Serialized Form
Method Summary |
Boolean |
parse(String flagString)
Works out the Boolean value represented by a particular
string using this flag convention. |
String |
toString(Boolean b)
Converts a particular Boolean value to its string
representation using this flag convention. |
TRUE_FALSE
public static final Booleans.FlagType TRUE_FALSE
YES_NO
public static final Booleans.FlagType YES_NO
ON_OFF
public static final Booleans.FlagType ON_OFF
instanceList
public static final List instanceList
parse
public Boolean parse(String flagString)
throws ParseException
- Works out the Boolean value represented by a particular
string using this flag convention.
- Parameters:
flagString
- the string in which to look for a boolean value
representation
- Throws:
ParseException
- if flagString represents neither
true, false nor null
toString
public String toString(Boolean b)
- Converts a particular Boolean value to its string
representation using this flag convention.
- Parameters:
b
- the value to convert
- Returns:
- the string representation of b or null if
b is null