- java.lang.Object
-
- java.lang.Enum<Tile.TileColor>
-
- eu.hansolo.tilesfx.Tile.TileColor
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Tile.TileColor>
- Enclosing class:
- Tile
public static enum Tile.TileColor extends java.lang.Enum<Tile.TileColor>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Tile.TileColorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Tile.TileColor[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GRAY
public static final Tile.TileColor GRAY
-
RED
public static final Tile.TileColor RED
-
LIGHT_RED
public static final Tile.TileColor LIGHT_RED
-
GREEN
public static final Tile.TileColor GREEN
-
LIGHT_GREEN
public static final Tile.TileColor LIGHT_GREEN
-
BLUE
public static final Tile.TileColor BLUE
-
DARK_BLUE
public static final Tile.TileColor DARK_BLUE
-
ORANGE
public static final Tile.TileColor ORANGE
-
YELLOW_ORANGE
public static final Tile.TileColor YELLOW_ORANGE
-
YELLOW
public static final Tile.TileColor YELLOW
-
MAGENTA
public static final Tile.TileColor MAGENTA
-
PINK
public static final Tile.TileColor PINK
-
-
Method Detail
-
values
public static Tile.TileColor[] 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 (Tile.TileColor c : Tile.TileColor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Tile.TileColor 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
-
-