Enum Class Items

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

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

    • VEG_BIRYANI

      public static final Items VEG_BIRYANI
    • CHICKEN_BIRYANI

      public static final Items CHICKEN_BIRYANI
    • ROTTI

      public static final Items ROTTI
    • PRAWNS_BIRYANI

      public static final Items PRAWNS_BIRYANI
    • Afghini_chicken

      public static final Items Afghini_chicken
  • Method Details

    • values

      public static Items[] 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 Items 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
    • getItemPrize

      public double getItemPrize()
      Returns:
      ITEMPRICE