Modifier and Type | Method and Description |
---|---|
static ThreeBool |
asThreeBool(boolean b)
Returns
ThreeBool.TRUE if b == true and
ThreeBool.FALSE if b == false . |
boolean |
isNotFalse()
Returns
true is this is ThreeBool.TRUE or
ThreeBool.UNKNOWN . |
boolean |
isTrue()
Returns
true if this is ThreeBool.TRUE . |
static ThreeBool |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreeBool[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreeBool TRUE
public static final ThreeBool FALSE
public static final ThreeBool UNKNOWN
public static ThreeBool[] values()
for (ThreeBool c : ThreeBool.values()) System.out.println(c);
public static ThreeBool valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isTrue()
true
if this is ThreeBool.TRUE
. This method
is used to easily convert between booleans and ThreeBools.true
if this is ThreeBool.TRUE
.public boolean isNotFalse()
true
is this is ThreeBool.TRUE
or
ThreeBool.UNKNOWN
. This method is used to easily convert
between booleans and ThreeBools.true
if this ThreeBool is unequal to ThreeBool.FALSE
public static ThreeBool asThreeBool(boolean b)
ThreeBool.TRUE
if b == true
and
ThreeBool.FALSE
if b == false
. This method is used to
easily convert between booleans and ThreeBools.b
- boolean to convert into a ThreeBool valueThreeBool.TRUE
if b == true
and
ThreeBool.FALSE
if b == false
.