Package org.kigalisim.lang.operation
Enum Class DisplacementType
- All Implemented Interfaces:
Serializable,Comparable<DisplacementType>,java.lang.constant.Constable
Enum representing the type of displacement for cap and floor operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBy units displacement - always convert to units and displace by equipment count.By volume displacement - always convert to kg and displace by volume.Equivalent displacement - displaces based on context (volume if last specified as volume, units if units). -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplacementTypeReturns the enum constant of this class with the specified name.static DisplacementType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EQUIVALENT
Equivalent displacement - displaces based on context (volume if last specified as volume, units if units). -
BY_VOLUME
By volume displacement - always convert to kg and displace by volume. -
BY_UNITS
By units displacement - always convert to units and displace by equipment count.
-
-
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
-