public enum EnumValue extends Enum<EnumValue>
| Modifier and Type | Method and Description |
|---|---|
static EnumValue |
fromCode(String code) |
String |
getCode() |
static EnumValue |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumValue[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumValue ONE
public static final EnumValue TWO
public static final EnumValue THREE
public static EnumValue[] values()
for (EnumValue c : EnumValue.values()) System.out.println(c);
public static EnumValue 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 String getCode()
Copyright © 2001-2024 Red Hat, Inc. All Rights Reserved.