Package com.primavera.common.value
Enum Class SpreadBucketType
- All Implemented Interfaces:
Serializable,Comparable<SpreadBucketType>,java.lang.constant.Constable
SpreadBucketType defines the bucket types for which spreads are calculated and stored.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns a Non-prefixed Display Name of the SpreadBucketType.static SpreadBucketTypefromInt(int oldConstantVal) Gets a SpreadBucketType instance based on the internal constant passed as an argument.intgetMode()Gets an internal mode value.toString()Returns a string representation of the object.static SpreadBucketTypeReturns the enum constant of this class with the specified name.static SpreadBucketType[]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, valueOf
-
Enum Constant Details
-
SBT_NONE
-
SBT_HOUR
-
SBT_DAY
-
SBT_WEEK
-
SBT_MONTH
-
SBT_QUARTER
-
SBT_YEAR
-
SBT_FINANCIAL_PERIOD
-
-
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
-
getMode
public int getMode()Gets an internal mode value. This method should not be called from client code.- Returns:
- an internal mode value
-
toString
Returns a string representation of the object.- Overrides:
toStringin classEnum<SpreadBucketType>- Returns:
- a string representation of the object
-
fromInt
Gets a SpreadBucketType instance based on the internal constant passed as an argument.- Parameters:
oldConstantVal- the internal constant value- Returns:
- SpreadBucketType the unique SpreadBucketType instance
-
displayName
Returns a Non-prefixed Display Name of the SpreadBucketType. (E.g.: For SpreadBucketType.SBT_NONE, display name will be NONE, similarly For SpreadBucketType.SBT_YEAR, display name will be YEAR and so on)- Returns:
- a display friendly string representation of the object.
-