Class BigDecimalCoder

All Implemented Interfaces:
Serializable

public class BigDecimalCoder extends AtomicCoder<BigDecimal>
A BigDecimalCoder encodes a BigDecimal as an integer scale encoded with VarIntCoder and a BigInteger encoded using BigIntegerCoder. The BigInteger, when scaled (with unlimited precision, aka MathContext.UNLIMITED), yields the expected BigDecimal.
See Also: