public enum KeyType extends Enum<KeyType>
The GNU Lesser General Public License for details.
Enum Constant and Description |
---|
LIST
Book organizes its entries in a list, as in a dictionary.
|
TREE
Book organizes its entries in a tree, as in a general book.
|
VERSE
Book contains verses and can be understood as book, chapter and verse.
|
Modifier and Type | Method and Description |
---|---|
static KeyType |
fromString(String name)
Lookup method to convert from a String
|
int |
toInteger()
Get an integer representation for this KeyType
|
static KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyType VERSE
public static final KeyType LIST
public static final KeyType TREE
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType 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 toInteger()