Enum KitchenIngredient
- java.lang.Object
-
- java.lang.Enum<KitchenIngredient>
-
- com.apogames.kitchenchef.game.enums.KitchenIngredient
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<KitchenIngredient>
public enum KitchenIngredient extends java.lang.Enum<KitchenIngredient>
The enum Kitchen ingredient.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAFE
Cafe kitchen ingredient.CARROT
Carrot kitchen ingredient.CHEESE
Cheese kitchen ingredient.GINGERBREAD
Gingerbread kitchen ingredient.MEAT
Meat kitchen ingredient.PASTA
Pasta kitchen ingredient.SALAD
Salad kitchen ingredient.TOAST
Toast kitchen ingredient.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KitchenIngredient
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static KitchenIngredient[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PASTA
public static final KitchenIngredient PASTA
Pasta kitchen ingredient.
-
MEAT
public static final KitchenIngredient MEAT
Meat kitchen ingredient.
-
SALAD
public static final KitchenIngredient SALAD
Salad kitchen ingredient.
-
TOAST
public static final KitchenIngredient TOAST
Toast kitchen ingredient.
-
CHEESE
public static final KitchenIngredient CHEESE
Cheese kitchen ingredient.
-
CARROT
public static final KitchenIngredient CARROT
Carrot kitchen ingredient.
-
GINGERBREAD
public static final KitchenIngredient GINGERBREAD
Gingerbread kitchen ingredient.
-
CAFE
public static final KitchenIngredient CAFE
Cafe kitchen ingredient.
-
-
Method Detail
-
values
public static KitchenIngredient[] 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 (KitchenIngredient c : KitchenIngredient.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KitchenIngredient 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
-
-