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