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
Immutable Implementation of Rounding
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.base.math.Rounding
Rounding.RoundingBuilder, Rounding.RoundingBuilderImpl, Rounding.RoundingImpl -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanSpecifies 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.Specifies the rounding rounding rule as up, down, or nearest.inthashCode()protected voidsetBuilderFields(Rounding.RoundingBuilder builder) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
RoundingImpl
-
-
Method Details
-
getRoundingDirection
@RosettaAttribute(value="roundingDirection", isRequired=true) @RuneAttribute(value="roundingDirection", isRequired=true) public RoundingDirectionEnum getRoundingDirection()Description copied from interface:RoundingSpecifies the rounding rounding rule as up, down, or nearest.- Specified by:
getRoundingDirectionin interfaceRounding
-
getPrecision
Description copied from interface:RoundingSpecifies 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:
getPrecisionin interfaceRounding
-
build
Description copied from interface:RoundingBuild Methods -
toBuilder
-
setBuilderFields
-
equals
-
hashCode
public int hashCode() -
toString
-