Enum Class PriceableFieldType
- All Implemented Interfaces:
Serializable
,Comparable<PriceableFieldType>
,Constable
public enum PriceableFieldType
extends Enum<PriceableFieldType>
implements Comparable<PriceableFieldType>
Fields on
PriceableTargets
that the pricing service cares about.- Author:
- Nathan Moore (nathanmoore).
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBase cost of manufacturing the target provided by the target itself rather than being derived by the pricing service.Base price to sell the target at provided by the target itself rather than being derived by the pricing service.Price from a contract price listPrice from a sale price listPrice from a standard price list -
Method Summary
Modifier and TypeMethodDescriptionfinal String
field()
final int
order()
toString()
static PriceableFieldType
Returns the enum constant of this class with the specified name.static PriceableFieldType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.static List<PriceableFieldType>
Returns an ordered list of all fields, excluding base cost.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface java.lang.Comparable
compareTo
-
Enum Constant Details
-
BASE_COST
Base cost of manufacturing the target provided by the target itself rather than being derived by the pricing service. -
BASE_PRICE
Base price to sell the target at provided by the target itself rather than being derived by the pricing service. -
STANDARD_PRICE
Price from a standard price list -
SALE_PRICE
Price from a sale price list -
CONTRACT_PRICE
Price from a contract price list
-
-
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
-
field
-
order
public final int order() -
valuesOrdered
Returns an ordered list of all fields, excluding base cost. -
toString
- Overrides:
toString
in classEnum<PriceableFieldType>
-