|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Boole> org.odata4j.core.Boole
public enum Boole
A custom Boolean class is necessary to support Boolean representations as defined in the OData standard.
The name of this class pays homage to George Boole (1815–1864).
Enum Constant Summary | |
---|---|
FALSE
|
|
TRUE
|
Method Summary | |
---|---|
static Boole |
fromString(String value)
Convert a string value to Boole . |
Boolean |
toBoolean()
|
static Boole |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Boole[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Boole FALSE
public static final Boole TRUE
Method Detail |
---|
public static Boole fromString(String value)
Boole
.
value
- OData string representation of a boolean value.
IllegalArgumentException
- if value
is not one of
true
, false
, 1
, or 0
.public Boolean toBoolean()
public static Boole valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static Boole[] values()
for (Boole c : Boole.values()) System.out.println(c);
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |