Enum Order

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

    public enum Order
    extends java.lang.Enum<Order>
    The enum Order.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Order valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Order[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • NOTHING

        public static final Order NOTHING
        Nothing order.
      • MOVING

        public static final Order MOVING
        Moving order.
      • CUTTING

        public static final Order CUTTING
        Cutting order.
      • COOKING

        public static final Order COOKING
        Cooking order.
      • DISH_WASHING

        public static final Order DISH_WASHING
        Dish washing order.
      • DISH_TAKING

        public static final Order DISH_TAKING
        Dish taking order.
      • COLLECTING_INGREDIENTS

        public static final Order COLLECTING_INGREDIENTS
        Collecting ingredients order.
      • COLLECTING_SPICE

        public static final Order COLLECTING_SPICE
        Collecting spice order.
      • ORDER

        public static final Order ORDER
        Order order.
      • SERVE

        public static final Order SERVE
        Serve order.
      • BUY

        public static final Order BUY
        Buy order.
      • PUT_DOWN

        public static final Order PUT_DOWN
        Put down order.
      • TAKE_UP

        public static final Order TAKE_UP
        Take up order.
      • UPGRADE

        public static final Order UPGRADE
        Upgrade your player.
    • Method Detail

      • values

        public static Order[] 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 (Order c : Order.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Order 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