Package net.sf.freecol.common.model
Enum Player.NoValueType
- java.lang.Object
-
- java.lang.Enum<Player.NoValueType>
-
- net.sf.freecol.common.model.Player.NoValueType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Player.NoValueType>
- Enclosing class:
- Player
public static enum Player.NoValueType extends java.lang.Enum<Player.NoValueType>
Special return values for showstopper getColonyValue fail.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
NoValueType(int value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Player.NoValueType
fromValue(int i)
double
getDouble()
int
getValue()
static Player.NoValueType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Player.NoValueType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOGUS
public static final Player.NoValueType BOGUS
-
TERRAIN
public static final Player.NoValueType TERRAIN
-
RUMOUR
public static final Player.NoValueType RUMOUR
-
SETTLED
public static final Player.NoValueType SETTLED
-
FOOD
public static final Player.NoValueType FOOD
-
INLAND
public static final Player.NoValueType INLAND
-
POLAR
public static final Player.NoValueType POLAR
-
ISLAND1
public static final Player.NoValueType ISLAND1
-
-
Method Detail
-
values
public static Player.NoValueType[] 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 (Player.NoValueType c : Player.NoValueType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Player.NoValueType 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
-
getValue
public int getValue()
-
getDouble
public double getDouble()
-
fromValue
public static Player.NoValueType fromValue(int i)
-
-