public enum Leaf6Enum extends Enum<Leaf6Enum>
| Enum Constant and Description |
|---|
ENUM1
Represents enum1.
|
ENUM2
Represents enum2.
|
| Modifier and Type | Method and Description |
|---|---|
int |
leaf6Enum()
Returns the attribute leaf6Enum.
|
static Leaf6Enum |
of(int value)
Returns the object of leaf6Enum for.
|
static Leaf6Enum |
of(String value)
Returns the object of leaf6Enum for.
|
String |
toString() |
static Leaf6Enum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Leaf6Enum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Leaf6Enum ENUM1
public static final Leaf6Enum ENUM2
public static Leaf6Enum[] values()
for (Leaf6Enum c : Leaf6Enum.values()) System.out.println(c);
public static Leaf6Enum 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 Leaf6Enum of(int value)
value - value of leaf6Enum forpublic static Leaf6Enum of(String value)
value - value of leaf6Enum forpublic int leaf6Enum()
Copyright © 2018. All rights reserved.