io.konik.jaxb.adapter.AmountLowRoundingAdapter.scale=2 io.konik.jaxb.adapter.AmountLowRoundingAdapter.roundingMode=HALF_UP
public class AmountLowRoundingAdapter 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.AmountLowRoundingAdapter.scale=2 io.konik.jaxb.adapter.AmountLowRoundingAdapter.roundingMode=HALF_UP
| Constructor and Description |
|---|
AmountLowRoundingAdapter()
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 AmountLowRoundingAdapter()
Instantiates a new amount rounding adapter.
protected java.lang.String getDefaultScale()
Copyright © 2014-2015 Konik.io. All Rights Reserved.