Package net.sf.freecol.common.model
Enum Map.Layer
- java.lang.Object
-
- java.lang.Enum<Map.Layer>
-
- net.sf.freecol.common.model.Map.Layer
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Layer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map.Layer
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Map.Layer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Map.Layer NONE
-
LAND
public static final Map.Layer LAND
-
TERRAIN
public static final Map.Layer TERRAIN
-
REGIONS
public static final Map.Layer REGIONS
-
RIVERS
public static final Map.Layer RIVERS
-
RESOURCES
public static final Map.Layer RESOURCES
-
RUMOURS
public static final Map.Layer RUMOURS
-
NATIVES
public static final Map.Layer NATIVES
-
ALL
public static final Map.Layer ALL
-
-
Method Detail
-
values
public static Map.Layer[] 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 (Map.Layer c : Map.Layer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Map.Layer 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
-
-