A Rate effectively wraps a BigDecimal with associated control over precision and scale.
Rates are typically used to multiple or divide against an amount. For example, you can't ADD a Rate to Money.
12131415161718
public BigDecimal unwrapValue(Rate beanType) { return beanType.getValue(); } public Rate wrapValue(BigDecimal scalarType) { return new Rate(scalarType); }