Enum Class RefitPartsStatus.State

java.lang.Object
java.lang.Enum<RefitPartsStatus.State>
mekhq.campaign.parts.RefitPartsStatus.State
All Implemented Interfaces:
Serializable, Comparable<RefitPartsStatus.State>, Constable
Enclosing class:
RefitPartsStatus

public static enum RefitPartsStatus.State extends Enum<RefitPartsStatus.State>
How a refit stands for parts.
  • Enum Constant Details

    • READY

      public static final RefitPartsStatus.State READY
      Everything the refit needs is in the warehouse
    • PARTLY_IN_STOCK

      public static final RefitPartsStatus.State PARTLY_IN_STOCK
      The warehouse covers some of the refit's needs; the rest must be ordered
    • TO_ORDER

      public static final RefitPartsStatus.State TO_ORDER
      Nothing the refit needs is in the warehouse; everything must be ordered
    • CANNOT_BUY

      public static final RefitPartsStatus.State CANNOT_BUY
      Some parts are not in stock and the campaign's purchasing options do not allow buying them
  • Method Details

    • values

      public static RefitPartsStatus.State[] 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 RefitPartsStatus.State 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