io.konik.jaxb.adapter.TwoDigitRoundingAdapter.scale=2 io.konik.jaxb.adapter.TwoDigitRoundingAdapter.roundingMode=HALF_UP
public class TwoDigitRoundingAdapter extends javax.xml.bind.annotation.adapters.XmlAdapter<Amount,Amount>
Adapter to round the amount during marshalling to two decimals after the period.
The scale and rounding mode can be overridden via the configuration.
io.konik.jaxb.adapter.TwoDigitRoundingAdapter.scale=2 io.konik.jaxb.adapter.TwoDigitRoundingAdapter.roundingMode=HALF_UP
Constructor and Description |
---|
TwoDigitRoundingAdapter()
Instantiates a new amount rounding adapter.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getDefaultScale() |
Amount |
marshal(Amount amount) |
Amount |
unmarshal(Amount amount) |
public TwoDigitRoundingAdapter()
Instantiates a new amount rounding adapter.
protected java.lang.String getDefaultScale()
Copyright © 2014-2018 Konik.io. All Rights Reserved.