Package jasima.shopSim.core
Enum Shop.ShopMessage
- java.lang.Object
-
- java.lang.Enum<Shop.ShopMessage>
-
- jasima.shopSim.core.Shop.ShopMessage
-
- All Implemented Interfaces:
SimComponent.SimComponentEvent,Serializable,Comparable<Shop.ShopMessage>
- Enclosing class:
- Shop
public static enum Shop.ShopMessage extends Enum<Shop.ShopMessage> implements SimComponent.SimComponentEvent
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JOB_FINISHEDJOB_RELEASED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Shop.ShopMessagevalueOf(String name)Returns the enum constant of this type with the specified name.static Shop.ShopMessage[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JOB_RELEASED
public static final Shop.ShopMessage JOB_RELEASED
-
JOB_FINISHED
public static final Shop.ShopMessage JOB_FINISHED
-
-
Method Detail
-
values
public static Shop.ShopMessage[] 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 (Shop.ShopMessage c : Shop.ShopMessage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Shop.ShopMessage valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-