Enum Class Ingredient

java.lang.Object
java.lang.Enum<Ingredient>
cielsachen.mco1.model.Ingredient
All Implemented Interfaces:
Serializable, Comparable<Ingredient>, Constable

public enum Ingredient extends Enum<Ingredient>
  • Enum Constant Details

    • SMALL_CUP

      public static final Ingredient SMALL_CUP
    • MEDIUM_CUP

      public static final Ingredient MEDIUM_CUP
    • LARGE_CUP

      public static final Ingredient LARGE_CUP
    • COFFEE_BEANS

      public static final Ingredient COFFEE_BEANS
    • MILK

      public static final Ingredient MILK
    • WATER

      public static final Ingredient WATER
    • HAZELNUT_SYRUP

      public static final Ingredient HAZELNUT_SYRUP
    • CHOCOLATE_SYRUP

      public static final Ingredient CHOCOLATE_SYRUP
    • ALMOND_SYRUP

      public static final Ingredient ALMOND_SYRUP
    • SWEETENER

      public static final Ingredient SWEETENER
  • Field Details

    • isSpecial

      public final boolean isSpecial
    • maximumCapacity

      public final double maximumCapacity
    • name

      public final String name
    • unitMeasure

      public final String unitMeasure
  • Method Details

    • values

      public static Ingredient[] 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 Ingredient 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
    • regularValues

      public static List<Ingredient> regularValues()
    • specialValues

      public static List<Ingredient> specialValues()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Ingredient>