java.lang.Object
java.lang.Enum<ButtonEnum>
stud.ntnu.idatt1005.pantrypal.enums.ButtonEnum
All Implemented Interfaces:
Serializable, Comparable<ButtonEnum>, Constable

public enum ButtonEnum extends Enum<ButtonEnum>
An enum representing the different buttons used in the application
  • Enum Constant Details

    • ADD

      public static final ButtonEnum ADD
    • REMOVE

      public static final ButtonEnum REMOVE
    • EDIT_FAVORITE

      public static final ButtonEnum EDIT_FAVORITE
    • EDIT_RECIPE

      public static final ButtonEnum EDIT_RECIPE
    • OPEN_RECIPE

      public static final ButtonEnum OPEN_RECIPE
    • ADD_TO_SHOPPING_LIST

      public static final ButtonEnum ADD_TO_SHOPPING_LIST
    • ADD_TO_PANTRY

      public static final ButtonEnum ADD_TO_PANTRY
  • Constructor Details

    • ButtonEnum

      private ButtonEnum()
  • Method Details

    • values

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