Enum Class Drinks

java.lang.Object
java.lang.Enum<Drinks>
edu.nwmissouri.zoo02group.Drinks
All Implemented Interfaces:
Serializable, Comparable<Drinks>, Constable

public enum Drinks extends Enum<Drinks>
enum for drink list and setting the prizes to
Author:
Tejaswini Challa
  • Enum Constant Details

    • FOUNTAIN_SODA_20_OZ

      public static final Drinks FOUNTAIN_SODA_20_OZ
    • RED_BULL

      public static final Drinks RED_BULL
    • IZZE_SPARKLING_JUICE

      public static final Drinks IZZE_SPARKLING_JUICE
    • FRESH_BREWED_ICED_TEA

      public static final Drinks FRESH_BREWED_ICED_TEA
    • WATER

      public static final Drinks WATER
  • Method Details

    • values

      public static Drinks[] 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 Drinks 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
    • getDrinkPrice

      public double getDrinkPrice()
      Returns:
      DRINKPRICE