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

public enum TypeDrink extends Enum<TypeDrink>
Enumeator referente ao tipo de Drink
Author:
Pedro Henrique Pereira de Oliveira
  • Enum Constant Details

    • ORDINARY_DRINK

      public static final TypeDrink ORDINARY_DRINK
    • COCKTAIL

      public static final TypeDrink COCKTAIL
    • SHAKE

      public static final TypeDrink SHAKE
    • BEER

      public static final TypeDrink BEER
    • COCOA

      public static final TypeDrink COCOA
    • OTHER

      public static final TypeDrink OTHER
  • Method Details

    • values

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