public static final class StringEnumAbstractBase.Table extends Object
Constructor and Description |
---|
Table(StringEnumAbstractBase[] array) |
Modifier and Type | Method and Description |
---|---|
StringEnumAbstractBase |
forInt(int i)
Returns the singleton for an int code, or null if none.
|
StringEnumAbstractBase |
forString(String s)
Returns the singleton for a
String , or null if none. |
int |
lastInt()
Returns the last valid int code (the first is 1; zero is not used).
|
public Table(StringEnumAbstractBase[] array)
public StringEnumAbstractBase forString(String s)
String
, or null if none.public StringEnumAbstractBase forInt(int i)
public int lastInt()