Enum Class Order.Status

java.lang.Object
java.lang.Enum<Order.Status>
com.needleandstitch.pavuk.model.Order.Status
All Implemented Interfaces:
Serializable, Comparable<Order.Status>, Constable
Enclosing class:
Order

public static enum Order.Status extends Enum<Order.Status>
Enum representing the possible statuses of an order.
Since:
15.12.2024
Version:
1.0.0
Author:
Needle & Stitch
  • Enum Constant Details

    • PENDING

      public static final Order.Status PENDING
      The order is pending and has not been processed yet.
    • PROCESSING

      public static final Order.Status PROCESSING
      The order is currently being processed.
    • SHIPPED

      public static final Order.Status SHIPPED
      The order has been shipped and is on its way.
    • DELIVERED

      public static final Order.Status DELIVERED
      The order has been delivered to the customer.
    • CANCELLED

      public static final Order.Status CANCELLED
      The order has been cancelled.
  • Method Details

    • values

      public static Order.Status[] 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 Order.Status 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