Package cdm.base.math
Class Rounding.RoundingBuilderImpl
java.lang.Object
cdm.base.math.Rounding.RoundingBuilderImpl
- All Implemented Interfaces:
Rounding,Rounding.RoundingBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
Rounding
Builder Implementation of Rounding
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.base.math.Rounding
Rounding.RoundingBuilder, Rounding.RoundingBuilderImpl, Rounding.RoundingImpl -
Field Summary
Fields -
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.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setPrecision(Integer _precision) setRoundingDirection(RoundingDirectionEnum _roundingDirection) 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, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosettaMethods inherited from interface cdm.base.math.Rounding.RoundingBuilder
process
-
Field Details
-
roundingDirection
-
precision
-
-
Constructor Details
-
RoundingBuilderImpl
public RoundingBuilderImpl()
-
-
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
-
setRoundingDirection
@RosettaAttribute(value="roundingDirection", isRequired=true) @RuneAttribute(value="roundingDirection", isRequired=true) public Rounding.RoundingBuilder setRoundingDirection(RoundingDirectionEnum _roundingDirection) - Specified by:
setRoundingDirectionin interfaceRounding.RoundingBuilder
-
setPrecision
@RosettaAttribute("precision") @RuneAttribute("precision") public Rounding.RoundingBuilder setPrecision(Integer _precision) - Specified by:
setPrecisionin interfaceRounding.RoundingBuilder
-
build
Description copied from interface:RoundingBuild Methods -
toBuilder
-
prune
- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder- Specified by:
prunein interfaceRounding.RoundingBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public Rounding.RoundingBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-