Class ApplyFinalRateRounding
java.lang.Object
cdm.product.asset.floatingrate.functions.ApplyFinalRateRounding
- All Implemented Interfaces:
com.rosetta.model.lib.functions.RosettaFunction
- Direct Known Subclasses:
ApplyFinalRateRounding.ApplyFinalRateRoundingDefault
public abstract class ApplyFinalRateRounding
extends Object
implements com.rosetta.model.lib.functions.RosettaFunction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.rosetta.model.lib.mapper.MapperS<RoundingDirectionEnum> direction(BigDecimal baseRate, Rounding finalRateRounding) protected abstract BigDecimaldoEvaluate(BigDecimal baseRate, Rounding finalRateRounding) evaluate(BigDecimal baseRate, Rounding finalRateRounding) protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> precision(BigDecimal baseRate, Rounding finalRateRounding) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.functions.RosettaFunction
toBuilder, toBuilder, toBuilder
-
Field Details
-
roundToPrecision
-
-
Constructor Details
-
ApplyFinalRateRounding
public ApplyFinalRateRounding()
-
-
Method Details
-
evaluate
- Parameters:
baseRate- Rate before rounding.finalRateRounding- type of rounding (precision and direction).- Returns:
- roundedRate rate after rounding.
-
doEvaluate
-
precision
protected abstract com.rosetta.model.lib.mapper.MapperS<Integer> precision(BigDecimal baseRate, Rounding finalRateRounding) -
direction
protected abstract com.rosetta.model.lib.mapper.MapperS<RoundingDirectionEnum> direction(BigDecimal baseRate, Rounding finalRateRounding)
-