Enum Class FoodItem
- All Implemented Interfaces:
Serializable
,Comparable<FoodItem>
,Constable
The FoodItem enum class defines a set of food types that may be serving as ingredients in recipes
and that the user may, or may not, have available in the cupboard, fridge or freezer. The label
is a strict lower case version of the constant value where the underscore is replaced by a space.
This value is used at the front-end to represent each enum value.
- Since:
- 13.03.2023
- Author:
- hannesofie
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAvocado.Bay leaf.Bell pepper.Bread crumbs.Broccoli.Broth.Butter.Canned tomato.Carrot.Celery.Chickpeas.Chili.Chili beans.Chili powder.Cream.Cucumber.Cumin powder.Dry basil.Dry oregano.Dry thyme.Egg.Fish.Fresh basil.Fresh yeast.Frozen green peas.Garlic clove.Ginger.Ham.Honey.Lam.Leek.Lemon.Lemon juice.Macaroni.Milk.Minced meat.Oil.Olive oil.Onion.Orange.Parmesan.Pasta.Pie dough.Potato.Red onion.Red wine.Salad.Salmon.Salsa sauce.Sausage.Shallot.Snap pea.Spaghetti.Spinach.Spring roll.Sugar.Summer cutlet.Tomato.Tomato paste.Vinegar.Wheat flour.White bananas.Yellow cheese. -
Field Summary
Fields -
Method Summary
-
Enum Constant Details
-
ONION
Onion. -
MINCED_MEAT
Minced meat. -
POTATO
Potato. -
YELLOW_CHEESE
Yellow cheese. -
WHEAT_FLOUR
Wheat flour. -
MILK
Milk. -
TOMATO
Tomato. -
ORANGE
Orange. -
LEMON
Lemon. -
SALSA_SAUCE
Salsa sauce. -
CUCUMBER
Cucumber. -
SALAD
Salad. -
SPINACH
Spinach. -
SPRING_ROLL
Spring roll. -
BELL_PEPPER
Bell pepper. -
CHICKPEAS
Chickpeas. -
SPAGHETTI
Spaghetti. -
PASTA
Pasta. -
CREAM
Cream. -
HONEY
Honey. -
VINEGAR
Vinegar. -
TOMATO_PASTE
Tomato paste. -
CHILLI
Chili. -
EGG
Egg. -
OLIVE_OIL
Olive oil. -
HAM
Ham. -
PARMESAN
Parmesan. -
SNAP_PEA
Snap pea. -
MACARONI
Macaroni. -
SALMON
Salmon. -
FISH
Fish. -
CARROT
Carrot. -
BUTTER
Butter. -
LEEK
Leek. -
BREADCRUMBS
Bread crumbs. -
OIL
Oil. -
SUMMER_CUTLET
Summer cutlet. -
RED_ONION
Red onion. -
AVOCADO
Avocado. -
LEMON_JUICE
Lemon juice. -
DRY_THYME
Dry thyme. -
FRESH_YEAST
Fresh yeast. -
GARLIC_CLOVE
Garlic clove. -
GINGER
Ginger. -
CANNED_TOMATO
Canned tomato. -
DRY_BASIL
Dry basil. -
FRESH_BASIL
Fresh basil. -
CELERY
Celery. -
BROTH
Broth. -
BAY_LEAF
Bay leaf. -
CHILLI_BEANS
Chili beans. -
CHILLI_POWDER
Chili powder. -
CUMIN_POWDER
Cumin powder. -
PIE_DOUGH
Pie dough. -
BROCCOLI
Broccoli. -
LAM
Lam. -
SUGAR
Sugar. -
SHALLOT
Shallot. -
RED_WINE
Red wine. -
WHITE_BEANS
White bananas. -
FROZEN_GREEN_PEAS
Frozen green peas. -
SAUSAGE
Sausage. -
DRY_OREGANO
Dry oregano.
-
-
Field Details
-
label
Label of the categories. The label formats the string value of the categories two string in lower caps.
-
-
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
-