Enum CookingStatus

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CookingStatus>

    public enum CookingStatus
    extends java.lang.Enum<CookingStatus>
    The enum Cooking status.
    • Enum Constant Detail

      • NEEDED_DISH

        public static final CookingStatus NEEDED_DISH
        Needed dish cooking status.
      • DISH

        public static final CookingStatus DISH
        Dish cooking status.
      • READY_FOR_CUTTING

        public static final CookingStatus READY_FOR_CUTTING
        Ready for cutting cooking status.
      • CUTTING

        public static final CookingStatus CUTTING
        Cutting cooking status.
      • READY_FOR_COOKING

        public static final CookingStatus READY_FOR_COOKING
        Ready for cooking cooking status.
      • COOKING

        public static final CookingStatus COOKING
        Cooking cooking status.
      • SERVEABLE

        public static final CookingStatus SERVEABLE
        Serveable cooking status.
      • ROTTEN

        public static final CookingStatus ROTTEN
        Rotten cooking status.
    • Method Detail

      • values

        public static CookingStatus[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CookingStatus c : CookingStatus.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CookingStatus valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getDescription

        public java.lang.String getDescription()
      • isReadyForCutting

        public boolean isReadyForCutting()
        Is ready for cutting boolean.
        Returns:
        the boolean
      • isCutting

        public boolean isCutting​(WaitHelper helper)
        Is cutting boolean.
        Parameters:
        helper - the helper
        Returns:
        the boolean
      • isReadyForServing

        public boolean isReadyForServing()
        Is ready for serving boolean.
        Returns:
        the boolean
      • isCooking

        public boolean isCooking​(WaitHelper helper)
        Is cooking boolean.
        Parameters:
        helper - the helper
        Returns:
        the boolean