Enum Class OrderStatus

java.lang.Object
java.lang.Enum<OrderStatus>
com.dzidzi.dto.order.OrderStatus
All Implemented Interfaces:
Serializable, Comparable<OrderStatus>, Constable

public enum OrderStatus extends Enum<OrderStatus>
The order statuses in the dzidziApp.
  • Enum Constant Details

    • PENDING

      public static final OrderStatus PENDING
    • PAYED

      public static final OrderStatus PAYED
    • ACCEPTED

      public static final OrderStatus ACCEPTED
    • AWAITING_PICKUP

      public static final OrderStatus AWAITING_PICKUP
    • READY_FOR_DELIVERY

      public static final OrderStatus READY_FOR_DELIVERY
    • DELIVERED

      public static final OrderStatus DELIVERED
    • CANCELLED

      public static final OrderStatus CANCELLED
  • Method Details

    • values

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