Package cdm.base.math
Interface Rounding
- All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
- All Known Subinterfaces:
Rounding.RoundingBuilder
- All Known Implementing Classes:
Rounding.RoundingBuilderImpl,Rounding.RoundingImpl
@RosettaDataType(value="Rounding",
builder=RoundingBuilderImpl.class,
version="5.30.0")
@RuneDataType(value="Rounding",
model="cdm",
builder=RoundingBuilderImpl.class,
version="5.30.0")
public interface Rounding
extends com.rosetta.model.lib.RosettaModelObject
Defines rounding rules and precision to be used in the rounding of a number.
- Version:
- 5.30.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder Interfacestatic classBuilder Implementation of Roundingstatic classImmutable Implementation of Rounding -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build Methodsstatic Rounding.RoundingBuilderbuilder()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.Specifies the rounding rounding rule as up, down, or nearest.getType()default com.rosetta.model.lib.meta.RosettaMetaData<? extends Rounding> metaData()Utility Methodsdefault voidprocess(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) Methods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Field Details
-
metaData
-
-
Method Details
-
getRoundingDirection
RoundingDirectionEnum getRoundingDirection()Specifies the rounding rounding rule as up, down, or nearest. -
getPrecision
Integer getPrecision()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. -
build
Rounding build()Build Methods- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
Rounding.RoundingBuilder toBuilder()- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
builder
-
metaData
Utility Methods- Specified by:
metaDatain interfacecom.rosetta.model.lib.RosettaModelObject
-
getType
- Specified by:
getTypein interfacecom.rosetta.model.lib.RosettaModelObject
-
process
default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) - Specified by:
processin interfacecom.rosetta.model.lib.RosettaModelObject
-