io.konik.jaxb.adapter.TwoDigitRoundingAdapter.scale=2 io.konik.jaxb.adapter.TwoDigitRoundingAdapter.roundingMode=HALF_UP
public class TwoDigitRoundingAdapter extends 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 String |
getDefaultScale() |
Amount |
marshal(Amount amount) |
Amount |
unmarshal(Amount amount) |
public TwoDigitRoundingAdapter()
Instantiates a new amount rounding adapter.
Copyright © 2014-2016 Konik.io. All Rights Reserved.