Enum Class RoundingType

java.lang.Object
java.lang.Enum<RoundingType>
com.almis.awe.model.type.RoundingType
All Implemented Interfaces:
Serializable, Comparable<RoundingType>, Constable

public enum RoundingType extends Enum<RoundingType>
RoundingType Enumerated List of allowed web numeric types
Author:
Pablo GARCIA - 16/APR/2012
  • Enum Constant Details

    • HALF_UP_SYMMETRIC

      public static final RoundingType HALF_UP_SYMMETRIC
      Round-Half-Up Symmetric
    • HALF_UP_ASYMMETRIC

      public static final RoundingType HALF_UP_ASYMMETRIC
      Round-Half-Up Asymmetric
    • HALF_DOWN_SYMMETRIC

      public static final RoundingType HALF_DOWN_SYMMETRIC
      Round-Half-Down Symmetric
    • HALF_DOWN_ASYMMETRIC

      public static final RoundingType HALF_DOWN_ASYMMETRIC
      Round-Half-Down Asymmetric
    • HALF_EVEN

      public static final RoundingType HALF_EVEN
      Round-Half-Even
    • UP

      public static final RoundingType UP
      Round Up
    • DOWN

      public static final RoundingType DOWN
      Round Down
    • CEILING

      public static final RoundingType CEILING
      Round to Ceiling
    • FLOOR

      public static final RoundingType FLOOR
      Round to Floor
  • Method Details

    • values

      public static RoundingType[] 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 RoundingType 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
    • fromCode

      public static RoundingType fromCode(String code)
      Get rounding type from code
      Parameters:
      code - Code
      Returns:
      Rounding type
    • getRoundingMode

      public RoundingMode getRoundingMode()
      Override toString method to return property value
      Returns:
      Property value (if defined)
    • getCode

      public String getCode()
      Get rounding type code
      Returns:
      code