public enum Generation extends Enum<Generation>
Enum Constant and Description |
---|
FIRST
First.
|
SECOND
Second.
|
THIRD
Third.
|
Modifier and Type | Method and Description |
---|---|
static Generation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Generation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Generation FIRST
public static final Generation SECOND
public static final Generation THIRD
public static Generation[] values()
for (Generation c : Generation.values()) System.out.println(c);
public static Generation 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 © 2008–2018. All rights reserved.