Enum Class FoodItem

java.lang.Object
java.lang.Enum<FoodItem>
no.ntnu.idatt1002.demo.data.recipes.FoodItem
All Implemented Interfaces:
Serializable, Comparable<FoodItem>, Constable

public enum FoodItem extends Enum<FoodItem>
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
  • Enum Constant Details

    • ONION

      public static final FoodItem ONION
      Onion.
    • MINCED_MEAT

      public static final FoodItem MINCED_MEAT
      Minced meat.
    • POTATO

      public static final FoodItem POTATO
      Potato.
    • YELLOW_CHEESE

      public static final FoodItem YELLOW_CHEESE
      Yellow cheese.
    • WHEAT_FLOUR

      public static final FoodItem WHEAT_FLOUR
      Wheat flour.
    • MILK

      public static final FoodItem MILK
      Milk.
    • TOMATO

      public static final FoodItem TOMATO
      Tomato.
    • ORANGE

      public static final FoodItem ORANGE
      Orange.
    • LEMON

      public static final FoodItem LEMON
      Lemon.
    • SALSA_SAUCE

      public static final FoodItem SALSA_SAUCE
      Salsa sauce.
    • CUCUMBER

      public static final FoodItem CUCUMBER
      Cucumber.
    • SALAD

      public static final FoodItem SALAD
      Salad.
    • SPINACH

      public static final FoodItem SPINACH
      Spinach.
    • SPRING_ROLL

      public static final FoodItem SPRING_ROLL
      Spring roll.
    • BELL_PEPPER

      public static final FoodItem BELL_PEPPER
      Bell pepper.
    • CHICKPEAS

      public static final FoodItem CHICKPEAS
      Chickpeas.
    • SPAGHETTI

      public static final FoodItem SPAGHETTI
      Spaghetti.
    • PASTA

      public static final FoodItem PASTA
      Pasta.
    • CREAM

      public static final FoodItem CREAM
      Cream.
    • HONEY

      public static final FoodItem HONEY
      Honey.
    • VINEGAR

      public static final FoodItem VINEGAR
      Vinegar.
    • TOMATO_PASTE

      public static final FoodItem TOMATO_PASTE
      Tomato paste.
    • CHILLI

      public static final FoodItem CHILLI
      Chili.
    • EGG

      public static final FoodItem EGG
      Egg.
    • OLIVE_OIL

      public static final FoodItem OLIVE_OIL
      Olive oil.
    • HAM

      public static final FoodItem HAM
      Ham.
    • PARMESAN

      public static final FoodItem PARMESAN
      Parmesan.
    • SNAP_PEA

      public static final FoodItem SNAP_PEA
      Snap pea.
    • MACARONI

      public static final FoodItem MACARONI
      Macaroni.
    • SALMON

      public static final FoodItem SALMON
      Salmon.
    • FISH

      public static final FoodItem FISH
      Fish.
    • CARROT

      public static final FoodItem CARROT
      Carrot.
    • BUTTER

      public static final FoodItem BUTTER
      Butter.
    • LEEK

      public static final FoodItem LEEK
      Leek.
    • OIL

      public static final FoodItem OIL
      Oil.
    • SUMMER_CUTLET

      public static final FoodItem SUMMER_CUTLET
      Summer cutlet.
    • RED_ONION

      public static final FoodItem RED_ONION
      Red onion.
    • AVOCADO

      public static final FoodItem AVOCADO
      Avocado.
    • LEMON_JUICE

      public static final FoodItem LEMON_JUICE
      Lemon juice.
    • DRY_THYME

      public static final FoodItem DRY_THYME
      Dry thyme.
    • FRESH_YEAST

      public static final FoodItem FRESH_YEAST
      Fresh yeast.
    • GARLIC_CLOVE

      public static final FoodItem GARLIC_CLOVE
      Garlic clove.
    • GINGER

      public static final FoodItem GINGER
      Ginger.
    • CANNED_TOMATO

      public static final FoodItem CANNED_TOMATO
      Canned tomato.
    • DRY_BASIL

      public static final FoodItem DRY_BASIL
      Dry basil.
    • FRESH_BASIL

      public static final FoodItem FRESH_BASIL
      Fresh basil.
    • CELERY

      public static final FoodItem CELERY
      Celery.
    • BROTH

      public static final FoodItem BROTH
      Broth.
    • BAY_LEAF

      public static final FoodItem BAY_LEAF
      Bay leaf.
    • CHILLI_BEANS

      public static final FoodItem CHILLI_BEANS
      Chili beans.
    • CHILLI_POWDER

      public static final FoodItem CHILLI_POWDER
      Chili powder.
    • CUMIN_POWDER

      public static final FoodItem CUMIN_POWDER
      Cumin powder.
    • PIE_DOUGH

      public static final FoodItem PIE_DOUGH
      Pie dough.
    • BROCCOLI

      public static final FoodItem BROCCOLI
      Broccoli.
    • LAM

      public static final FoodItem LAM
      Lam.
    • SUGAR

      public static final FoodItem SUGAR
      Sugar.
    • SHALLOT

      public static final FoodItem SHALLOT
      Shallot.
    • RED_WINE

      public static final FoodItem RED_WINE
      Red wine.
    • WHITE_BEANS

      public static final FoodItem WHITE_BEANS
      White bananas.
    • FROZEN_GREEN_PEAS

      public static final FoodItem FROZEN_GREEN_PEAS
      Frozen green peas.
    • SAUSAGE

      public static final FoodItem SAUSAGE
      Sausage.
    • DRY_OREGANO

      public static final FoodItem DRY_OREGANO
      Dry oregano.
  • Field Details

    • label

      public final String label
      Label of the categories. The label formats the string value of the categories two string in lower caps.
  • Method Details

    • values

      public static FoodItem[] 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

      public static FoodItem valueOf(String name)
      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 name
      NullPointerException - if the argument is null