Class OfferRoundingProperties
java.lang.Object
com.broadleafcommerce.promotion.offer.service.autoconfigure.properties.OfferRoundingProperties
- Direct Known Subclasses:
OrderOfferRoundingProperties
Properties related to offer rounding behaviors.
- Author:
- Sunny Yu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
TheRoundingMode
to use for rounding offer values.int
hashCode()
boolean
Whether to round offer values.void
setRoundingMode
(RoundingMode roundingMode) TheRoundingMode
to use for rounding offer values.void
setRoundOfferValues
(boolean roundOfferValues) Whether to round offer values.toString()
-
Constructor Details
-
OfferRoundingProperties
public OfferRoundingProperties()
-
-
Method Details
-
isRoundOfferValues
public boolean isRoundOfferValues()Whether to round offer values.Note that order typed offers are always rounded regardless of the value of this property.
-
getRoundingMode
TheRoundingMode
to use for rounding offer values. -
setRoundOfferValues
public void setRoundOfferValues(boolean roundOfferValues) Whether to round offer values.Note that order typed offers are always rounded regardless of the value of this property.
-
setRoundingMode
TheRoundingMode
to use for rounding offer values. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-