public enum ConditionResult extends java.lang.Enum<ConditionResult>
Enum Constant and Description |
---|
FALSE
A condition result value which represents a Boolean result of "false".
|
TRUE
A condition result value which represents a Boolean result of "true".
|
UNDEFINED
A condition result value which represents an undefined result.
|
Modifier and Type | Method and Description |
---|---|
ConditionResult |
invert()
Retrieves the condition result value which is the inverse of this value.
|
static ConditionResult |
invert(ConditionResult r)
Retrieves the condition result value which is the inverse of the provided
result.
|
java.lang.String |
toString()
Retrieves a string representation of this condition result value.
|
static ConditionResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConditionResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConditionResult TRUE
public static final ConditionResult FALSE
public static final ConditionResult UNDEFINED
public static ConditionResult[] values()
for (ConditionResult c : ConditionResult.values()) System.out.println(c);
public static ConditionResult 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 ConditionResult invert()
TRUE
is FALSE
, and vice-versa. The inverse
of UNDEFINED
is UNDEFINED
.public static ConditionResult invert(ConditionResult r)
TRUE
is FALSE
, and vice-versa. The
inverse of UNDEFINED
is UNDEFINED
.r
- The condition result value for which to retrieve the inverse
value. It must not be null
.public java.lang.String toString()
toString
in class java.lang.Enum<ConditionResult>