java.lang.Object
java.lang.Enum<TypeMeal>
br.com.receitaquedoimenos.ReceitaQueDoiMenos.models.meal.TypeMeal
All Implemented Interfaces:
Serializable, Comparable<TypeMeal>, Constable

public enum TypeMeal extends Enum<TypeMeal>
Enumeator referente ao tipo de refeição
Author:
Pedro Henrique Pereira de Oliveira
  • Enum Constant Details

    • BEEF

      public static final TypeMeal BEEF
    • GOAT

      public static final TypeMeal GOAT
    • CHICKEN

      public static final TypeMeal CHICKEN
    • BREAKFAST

      public static final TypeMeal BREAKFAST
    • DESSERT

      public static final TypeMeal DESSERT
  • Method Details

    • values

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