Enum Class SpreadBucketType

java.lang.Object
java.lang.Enum<SpreadBucketType>
com.primavera.common.value.SpreadBucketType
All Implemented Interfaces:
Serializable, Comparable<SpreadBucketType>, java.lang.constant.Constable

public enum SpreadBucketType extends Enum<SpreadBucketType>
SpreadBucketType defines the bucket types for which spreads are calculated and stored.
  • Enum Constant Details

  • Method Details

    • values

      public static SpreadBucketType[] 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

      public static SpreadBucketType valueOf(String name)
      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 name
      NullPointerException - 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

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Enum<SpreadBucketType>
      Returns:
      a string representation of the object
    • fromInt

      public static SpreadBucketType fromInt(int oldConstantVal)
      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

      public String 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.