Enum MensaMealType

java.lang.Object
java.lang.Enum<MensaMealType>
edu.kit.aifb.atks.mensascraper.lib.MensaMealType
All Implemented Interfaces:
Serializable, Comparable<MensaMealType>, java.lang.constant.Constable

public enum MensaMealType extends Enum<MensaMealType>
Enum representing different types of meals.
  • Enum Constant Details

    • NONE

      public static final MensaMealType NONE
      No specific or unknown type of meal
    • PORK

      public static final MensaMealType PORK
      A meal containing pork meat
    • BEEF

      public static final MensaMealType BEEF
      A meal containing beef meat
    • MSC

      public static final MensaMealType MSC
      A meal containing fish
    • VEGETARIAN

      public static final MensaMealType VEGETARIAN
      A vegetarian meal
    • VEGAN

      public static final MensaMealType VEGAN
      A vegan meal
  • Method Details

    • values

      public static MensaMealType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MensaMealType 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 name
      NullPointerException - if the argument is null