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