public enum Bool extends Enum<Bool>
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
| Modifier and Type | Method and Description |
|---|---|
abstract Bool |
and(Bool other) |
abstract boolean |
isFalse() |
abstract boolean |
isKnown() |
abstract boolean |
isTrue() |
abstract Bool |
not() |
abstract Bool |
or(Bool other) |
static Bool |
valueOf(boolean value) |
static Bool |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bool[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bool FALSE
public static final Bool TRUE
public static final Bool UNKNOWN
public static Bool[] values()
for (Bool c : Bool.values()) System.out.println(c);
public static Bool valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static Bool valueOf(boolean value)
public abstract boolean isFalse()
public abstract boolean isKnown()
public abstract boolean isTrue()
public abstract Bool not()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.