Package cdm.base.math

Class Rounding.RoundingImpl

java.lang.Object
cdm.base.math.Rounding.RoundingImpl
All Implemented Interfaces:
Rounding, com.rosetta.model.lib.RosettaModelObject
Enclosing interface:
Rounding

public static class Rounding.RoundingImpl extends Object implements Rounding
Immutable Implementation of Rounding
  • Constructor Details

  • Method Details

    • getRoundingDirection

      @RosettaAttribute(value="roundingDirection", isRequired=true) @RuneAttribute(value="roundingDirection", isRequired=true) public RoundingDirectionEnum getRoundingDirection()
      Description copied from interface: Rounding
      Specifies the rounding rounding rule as up, down, or nearest.
      Specified by:
      getRoundingDirection in interface Rounding
    • getPrecision

      @RosettaAttribute("precision") @RuneAttribute("precision") public Integer getPrecision()
      Description copied from interface: Rounding
      Specifies the rounding precision in terms of a number of decimal places when the number is evaluated in decimal form (not percentage), e.g. 0.09876543 rounded to the nearest 5 decimal places is 0.0987654.
      Specified by:
      getPrecision in interface Rounding
    • build

      public Rounding build()
      Description copied from interface: Rounding
      Build Methods
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
      Specified by:
      build in interface Rounding
    • toBuilder

      public Rounding.RoundingBuilder toBuilder()
      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
      Specified by:
      toBuilder in interface Rounding
    • setBuilderFields

      protected void setBuilderFields(Rounding.RoundingBuilder builder)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object