Package mekhq.campaign.parts
Enum Class RefitPartsStatus.State
- All Implemented Interfaces:
Serializable,Comparable<RefitPartsStatus.State>,Constable
- Enclosing class:
RefitPartsStatus
How a refit stands for parts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSome parts are not in stock and the campaign's purchasing options do not allow buying themThe warehouse covers some of the refit's needs; the rest must be orderedEverything the refit needs is in the warehouseNothing the refit needs is in the warehouse; everything must be ordered -
Method Summary
Modifier and TypeMethodDescriptionstatic RefitPartsStatus.StateReturns the enum constant of this class with the specified name.static RefitPartsStatus.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
READY
Everything the refit needs is in the warehouse -
PARTLY_IN_STOCK
The warehouse covers some of the refit's needs; the rest must be ordered -
TO_ORDER
Nothing the refit needs is in the warehouse; everything must be ordered -
CANNOT_BUY
Some parts are not in stock and the campaign's purchasing options do not allow buying them
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-