Package net.sf.freecol.server.ai.mission
Enum TransportMission.CargoResult
- java.lang.Object
-
- java.lang.Enum<TransportMission.CargoResult>
-
- net.sf.freecol.server.ai.mission.TransportMission.CargoResult
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TransportMission.CargoResult>
- Enclosing class:
- TransportMission
private static enum TransportMission.CargoResult extends java.lang.Enum<TransportMission.CargoResult>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
CargoResult()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransportMission.CargoResult
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TransportMission.CargoResult[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TCONTINUE
public static final TransportMission.CargoResult TCONTINUE
-
TDONE
public static final TransportMission.CargoResult TDONE
-
TFAIL
public static final TransportMission.CargoResult TFAIL
-
TNEXT
public static final TransportMission.CargoResult TNEXT
-
TRETRY
public static final TransportMission.CargoResult TRETRY
-
-
Method Detail
-
values
public static TransportMission.CargoResult[] 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 (TransportMission.CargoResult c : TransportMission.CargoResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransportMission.CargoResult 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 namejava.lang.NullPointerException
- if the argument is null
-
-