Enum Class Station.StationType
- All Implemented Interfaces:
Serializable
,Comparable<Station.StationType>
,Constable
- Enclosing class:
- Station
Named enumeration of the station types.
The ids correspond to stationId in the TileMap object.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<Integer,
Station.StationType> private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Station.StationType
from
(int value) Get type from idint
getValue()
Get the id of this station type.static Station.StationType
Returns the enum constant of this class with the specified name.static Station.StationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
oven
-
grill
-
cutting_board
-
sink
-
bin
-
ingredient
-
serve
-
-
Field Details
-
value
private int value -
_map
-
-
Constructor Details
-
StationType
private StationType(int id)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Get the id of this station type.- Returns:
- integer id.
-
from
Get type from id- Parameters:
value
- id value- Returns:
- Enum type
-