public enum CustomEnum extends Enum<CustomEnum>
| Modifier and Type | Method and Description |
|---|---|
static CustomEnum |
forValue(int valueArg) |
int |
getIntValue() |
static CustomEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CustomEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CustomEnum Type1
public static final CustomEnum Type2
public static final CustomEnum Type3
public static CustomEnum[] values()
for (CustomEnum c : CustomEnum.values()) System.out.println(c);
public static CustomEnum 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 getIntValue()
public static CustomEnum forValue(int valueArg)
valueArg - Copyright © 2015. All Rights Reserved.