public enum OptionalBoolean extends Enum<OptionalBoolean>
Enum Constant and Description |
---|
OFALSE |
OTRUE |
OUNDEFINED |
Modifier and Type | Field and Description |
---|---|
static int |
OFALSE_VALUE |
static int |
OTRUE_VALUE |
static int |
OUNDEFINED_VALUE |
static List<OptionalBoolean> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static OptionalBoolean |
get(int value) |
static OptionalBoolean |
get(String literal) |
static OptionalBoolean |
getByName(String name) |
String |
getLiteral() |
String |
getName() |
int |
getValue() |
String |
toString() |
static OptionalBoolean |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OptionalBoolean[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OptionalBoolean OFALSE
public static final OptionalBoolean OTRUE
public static final OptionalBoolean OUNDEFINED
public static final int OFALSE_VALUE
public static final int OTRUE_VALUE
public static final int OUNDEFINED_VALUE
public static final List<OptionalBoolean> VALUES
public static OptionalBoolean[] values()
for (OptionalBoolean c : OptionalBoolean.values()) System.out.println(c);
public static OptionalBoolean 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 OptionalBoolean get(String literal)
public static OptionalBoolean getByName(String name)
public static OptionalBoolean get(int value)
public int getValue()
public String getName()
public String getLiteral()
public String toString()
toString
in class Enum<OptionalBoolean>