public static final class Boolean.Member.Enum extends StringEnumAbstractBase
enum.toString(); // returns the string value of the enum enum.intValue(); // returns an int value, useful for switches // e.g., case Enum.INT_TRUE Enum.forString(s); // returns the enum value for a string Enum.forInt(i); // returns the enum value for an intEnumeration objects are immutable singleton objects that can be compared using == object equality. They have no public constructor. See the constants defined within this class for all the valid values.
StringEnumAbstractBase.Table
Modifier and Type | Field and Description |
---|---|
static StringEnumAbstractBase.Table |
table |
Modifier and Type | Method and Description |
---|---|
static Boolean.Member.Enum |
forInt(int i)
Returns the enum value corresponding to an int, or null if none.
|
static Boolean.Member.Enum |
forString(String s)
Returns the enum value for a string, or null if none.
|
hashCode, intValue, toString
public static final StringEnumAbstractBase.Table table
public static Boolean.Member.Enum forString(String s)
public static Boolean.Member.Enum forInt(int i)