public enum OptionalBoolean extends java.lang.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 java.util.List<OptionalBoolean> |
VALUES |
Modifier and Type | Method and Description |
---|---|
static OptionalBoolean |
get(int value) |
static OptionalBoolean |
get(java.lang.String literal) |
static OptionalBoolean |
getByName(java.lang.String name) |
java.lang.String |
getLiteral() |
java.lang.String |
getName() |
int |
getValue() |
java.lang.String |
toString() |
static OptionalBoolean |
valueOf(java.lang.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 java.util.List<OptionalBoolean> VALUES
public static OptionalBoolean[] values()
for (OptionalBoolean c : OptionalBoolean.values()) System.out.println(c);
public static OptionalBoolean 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 namejava.lang.NullPointerException
- if the argument is nullpublic static OptionalBoolean get(java.lang.String literal)
public static OptionalBoolean getByName(java.lang.String name)
public static OptionalBoolean get(int value)
public int getValue()
public java.lang.String getName()
public java.lang.String getLiteral()
public java.lang.String toString()
toString
in class java.lang.Enum<OptionalBoolean>