public enum FooType extends Enum<FooType>
| Enum Constant and Description |
|---|
FOO_TYPE_1 |
FOO_TYPE_2 |
FOO_TYPE_3 |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel() |
static FooType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FooType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FooType FOO_TYPE_1
public static final FooType FOO_TYPE_2
public static final FooType FOO_TYPE_3
public static FooType[] values()
for (FooType c : FooType.values()) System.out.println(c);
public static FooType 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 getLabel()
Copyright © 2019. All rights reserved.