public enum EnumOne extends Enum<EnumOne>
| Enum Constant and Description |
|---|
one
description for enum value one
|
three
description for enum value three
|
two
description for enum value two
|
| Modifier and Type | Method and Description |
|---|---|
static EnumOne |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumOne[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumOne one
public static final EnumOne two
public static final EnumOne three
public static EnumOne[] values()
for (EnumOne c : EnumOne.values()) System.out.println(c);
public static EnumOne 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 nullCopyright © 2015. All rights reserved.