|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ConditionResult>
com.unboundid.directory.sdk.common.types.ConditionResult
public enum ConditionResult
This enum defines a set of values which may be used to represent the result of a Boolean evaluation in which the result may be undefined.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ConditionResult TRUE
public static final ConditionResult FALSE
public static final ConditionResult UNDEFINED
Method Detail |
---|
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 name
java.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>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |