public abstract class AbstractPromotionRounding extends Object implements PromotionRounding
| Modifier and Type | Field and Description |
|---|---|
protected RoundingMode |
roundingMode |
protected int |
roundingScale |
protected boolean |
roundOfferValues |
| Constructor and Description |
|---|
AbstractPromotionRounding() |
| Modifier and Type | Method and Description |
|---|---|
RoundingMode |
getRoundingMode()
Returns the rounding mode to use for rounding operations.
|
int |
getRoundingScale()
Returns the scale to use when rounding.
|
boolean |
isRoundOfferValues()
It is sometimes problematic to offer percentage-off offers with regards to rounding.
|
void |
setRoundingMode(RoundingMode roundingMode) |
void |
setRoundingScale(int roundingScale) |
protected boolean roundOfferValues
protected int roundingScale
protected RoundingMode roundingMode
public boolean isRoundOfferValues()
isRoundOfferValues in interface PromotionRoundingpublic void setRoundingScale(int roundingScale)
roundingScale - isRoundOfferValues()public void setRoundingMode(RoundingMode roundingMode)
roundingMode - isRoundOfferValues()public RoundingMode getRoundingMode()
PromotionRoundinggetRoundingMode in interface PromotionRoundingpublic int getRoundingScale()
PromotionRoundinggetRoundingScale in interface PromotionRoundingCopyright © 2015. All Rights Reserved.