Enum Class PriorityLevel

java.lang.Object
java.lang.Enum<PriorityLevel>
org.openwms.tms.PriorityLevel
All Implemented Interfaces:
Serializable, Comparable<PriorityLevel>, Constable

public enum PriorityLevel extends Enum<PriorityLevel> implements Serializable
A PriorityLevel is used to prioritize TransportOrders.
Author:
Heiko Scherrer
  • Enum Constant Details

    • LOWEST

      public static final PriorityLevel LOWEST
      Lowest priority.
    • LOW

      public static final PriorityLevel LOW
      Low priority.
    • NORMAL

      public static final PriorityLevel NORMAL
      Standard priority.
    • HIGH

      public static final PriorityLevel HIGH
      High priority.
    • HIGHEST

      public static final PriorityLevel HIGHEST
      Highest priority.
  • Field Details

    • order

      private int order
  • Constructor Details

    • PriorityLevel

      private PriorityLevel()
      Dear JPA...
    • PriorityLevel

      private PriorityLevel(int order)
      Initializing constructor.
      Parameters:
      order - The order
  • Method Details

    • values

      public static PriorityLevel[] 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 PriorityLevel 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
    • of

      public static PriorityLevel of(String priority)
    • getOrder

      public int getOrder()
      Get the order.
      Returns:
      the order.