public enum ECityState extends Enum<ECityState>
| Modifier and Type | Method and Description |
|---|---|
static ECityState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ECityState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ECityState NORMAL
public static final ECityState FIRE
public static final ECityState PLAGUE
public static final ECityState SIEGE
public static ECityState[] values()
for (ECityState c : ECityState.values()) System.out.println(c);
public static ECityState 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 © 2011-2018 Sahits GmbH. All Rights Reserved.