Package net.sf.freecol.common.model
Enum Unit.UnitState
- java.lang.Object
- 
- java.lang.Enum<Unit.UnitState>
- 
- net.sf.freecol.common.model.Unit.UnitState
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<Unit.UnitState>
 - Enclosing class:
- Unit
 
 public static enum Unit.UnitState extends java.lang.Enum<Unit.UnitState> A state a Unit can have.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description privateUnitState()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()Get the stem key for this unit state.static Unit.UnitStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Unit.UnitState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
ACTIVEpublic static final Unit.UnitState ACTIVE 
 - 
FORTIFIEDpublic static final Unit.UnitState FORTIFIED 
 - 
SENTRYpublic static final Unit.UnitState SENTRY 
 - 
IN_COLONYpublic static final Unit.UnitState IN_COLONY 
 - 
IMPROVINGpublic static final Unit.UnitState IMPROVING 
 - 
FORTIFYINGpublic static final Unit.UnitState FORTIFYING 
 - 
SKIPPEDpublic static final Unit.UnitState SKIPPED 
 
- 
 - 
Method Detail- 
valuespublic static Unit.UnitState[] 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 (Unit.UnitState c : Unit.UnitState.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static Unit.UnitState 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
 
 - 
getKeypublic java.lang.String getKey() Get the stem key for this unit state.- Returns:
- The stem key.
 
 
- 
 
-