Package com.complexible.common.base
Enum Class Bool
- All Implemented Interfaces:
Serializable,Comparable<Bool>,Constable
Three-valued (true, false, unknown) boolean type. The standard boolean operators are supported. The following truth
table gives the results the unary negation operator:
not
T F
F T
U U
The truth table for boolean operators is as follows:
and or
T T T T
T F F T
T U U T
F F F F
F U U U
U U U U
- Since:
- 2.0
- Version:
- 2.0
- Author:
- Evren Sirin
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract Boolabstract booleanisFalse()abstract booleanisKnown()abstract booleanisTrue()abstract Boolnot()abstract Boolstatic BoolvalueOf(boolean value) Returns the enum constant of this class with the specified name.static BoolReturns the enum constant of this class with the specified name.static Bool[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FALSE
-
TRUE
-
UNKNOWN
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
and
-
isFalse
public abstract boolean isFalse() -
isKnown
public abstract boolean isKnown() -
isTrue
public abstract boolean isTrue() -
not
-
or
-