Package com.highdeal.pnr.hci
Enum Class TierTableOutAttributeModel.ComputationMode
java.lang.Object
java.lang.Enum<TierTableOutAttributeModel.ComputationMode>
com.highdeal.pnr.hci.TierTableOutAttributeModel.ComputationMode
- All Implemented Interfaces:
Serializable,Comparable<TierTableOutAttributeModel.ComputationMode>,Constable
- Enclosing class:
- TierTableOutAttributeModel
public static enum TierTableOutAttributeModel.ComputationMode
extends Enum<TierTableOutAttributeModel.ComputationMode>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis type is used to indicate that the number value returned is the sum of all the linear values in ranges before the range in which is the input property is, with the prorated value for the range of the input property.This type is used to indicate that the number value returned is the sum of the all the values in the ranges before the range in which is the input property is.This type is used to indicate that the number value returned is the value matching the range in which the input value is.This type is used to indicate that the number value returned is the value matching the range in which the input value is.This key is used to indicate that calculation mode is not set. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()getFromCode(int code) getName()Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
SINGLE_NON_LINEAR
This type is used to indicate that the number value returned is the value matching the range in which the input value is. -
SINGLE_LINEAR
This type is used to indicate that the number value returned is the value matching the range in which the input value is. This value is then multiplied by the input value minus the lower range, or 0 if no lower range is specified. -
CUMULATIVE_NON_LINEAR
This type is used to indicate that the number value returned is the sum of the all the values in the ranges before the range in which is the input property is. -
CUMULATIVE_LINEAR
This type is used to indicate that the number value returned is the sum of all the linear values in ranges before the range in which is the input property is, with the prorated value for the range of the input property. -
UNSET
This key is used to indicate that calculation mode is not set. (for non number attribute only)
-
-
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
-
getName
-
getCode
public int getCode() -
parse
-
getFromCode
-