net.sf.freecol.common.model
Enum HistoryEvent.Type
java.lang.Object
java.lang.Enum<HistoryEvent.Type>
net.sf.freecol.common.model.HistoryEvent.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<HistoryEvent.Type>
- Enclosing class:
- HistoryEvent
public static enum HistoryEvent.Type
- extends java.lang.Enum<HistoryEvent.Type>
Method Summary |
static HistoryEvent.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static HistoryEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DISCOVER_NEW_WORLD
public static final HistoryEvent.Type DISCOVER_NEW_WORLD
DISCOVER_REGION
public static final HistoryEvent.Type DISCOVER_REGION
MEET_NATION
public static final HistoryEvent.Type MEET_NATION
CITY_OF_GOLD
public static final HistoryEvent.Type CITY_OF_GOLD
FOUND_COLONY
public static final HistoryEvent.Type FOUND_COLONY
ABANDON_COLONY
public static final HistoryEvent.Type ABANDON_COLONY
CONQUER_COLONY
public static final HistoryEvent.Type CONQUER_COLONY
COLONY_DESTROYED
public static final HistoryEvent.Type COLONY_DESTROYED
COLONY_CONQUERED
public static final HistoryEvent.Type COLONY_CONQUERED
DESTROY_SETTLEMENT
public static final HistoryEvent.Type DESTROY_SETTLEMENT
DESTROY_NATION
public static final HistoryEvent.Type DESTROY_NATION
NATION_DESTROYED
public static final HistoryEvent.Type NATION_DESTROYED
FOUNDING_FATHER
public static final HistoryEvent.Type FOUNDING_FATHER
DECLARE_INDEPENDENCE
public static final HistoryEvent.Type DECLARE_INDEPENDENCE
INDEPENDENCE
public static final HistoryEvent.Type INDEPENDENCE
SPANISH_SUCCESSION
public static final HistoryEvent.Type SPANISH_SUCCESSION
values
public static HistoryEvent.Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (HistoryEvent.Type c : HistoryEvent.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static HistoryEvent.Type valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null