public enum BooleanType extends Enum<BooleanType>
| Modifier and Type | Method and Description |
|---|---|
static boolean |
fromString(String value)
Runtime form of Boolean conversion: allows any of the valid "true" values;
assumes all other values are false.
|
static BooleanType |
get(String literal)
Finds boolean by passed literal.
|
String[] |
getLiterals() |
int |
getNumericValue() |
static BooleanType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BooleanType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BooleanType TRUE
public static final BooleanType FALSE
public static BooleanType[] values()
for (BooleanType c : BooleanType.values()) System.out.println(c);
public static BooleanType 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 int getNumericValue()
public String[] getLiterals()
public static BooleanType get(String literal)
literal - boolean string representationIllegalArgumentException - if boolean type is not foundpublic static boolean fromString(String value)
value - non-null string valueCopyright © 2021 The Apache Software Foundation. All rights reserved.