public enum JetLevel extends Enum<JetLevel>
Enum Constant and Description |
---|
ONE
Can you guess what this is? It's a "Level 1" node.
|
ROOT
A root level category
|
THREE
Querying all the jet nodes, there happens to be an undocumented THIRD LEVEL
spoooooooky.
|
TWO
This is the last level.
|
Modifier and Type | Method and Description |
---|---|
static JetLevel |
fromText(int text)
Attempt to create a JetLevel by text value
|
int |
getText() |
static JetLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JetLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JetLevel ROOT
public static final JetLevel ONE
public static final JetLevel TWO
public static final JetLevel THREE
public static JetLevel[] values()
for (JetLevel c : JetLevel.values()) System.out.println(c);
public static JetLevel 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 static JetLevel fromText(int text) throws IllegalArgumentException
text
- valueIllegalArgumentException
- if text is not foundpublic int getText()
Copyright © 2017. All rights reserved.