Enum Class BooleanLiteralSet
- All Implemented Interfaces:
Serializable,Comparable<BooleanLiteralSet>,Constable
A set in the domain {true,false}.
There are four possible sets: {}, {true}, {false}, {true,false}.
-
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 TypeMethodDescriptionbooleancontains(boolean literalValue) Returns whetherthiscontains the given literal value.static BooleanLiteralSetget(boolean literalValue) Returns the singleton set {literalValue}.Computes the intersection of this set andthat.toTri()Converts to a Tri.union(BooleanLiteralSet that) Computes the union of this set andthat.static BooleanLiteralSetReturns the enum constant of this class with the specified name.static BooleanLiteralSet[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
-
TRUE
-
FALSE
-
BOTH
-
-
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
-
intersection
Computes the intersection of this set andthat. -
union
Computes the union of this set andthat. -
contains
public boolean contains(boolean literalValue) Returns whetherthiscontains the given literal value. -
get
Returns the singleton set {literalValue}. -
toTri
Converts to a Tri.
-