@Test public void testGetScale() throws Exception{ BigDecimal bd = new BigDecimal( "1234354435654654092372883687236483274632894623894693284632" + ".8648326483294628364732763527635276153821765217853218763521786543276845327652187458237453278653276547236846834683274343243748634"); MonetaryAmount amount = Money.of(bd, "CHF"); assertEquals("Invalid scale for " + bd, amount.getNumber().getScale(), np.getScale(amount)); }
public int getScale(MonetaryAmount amount){ throw new UnsupportedOperationException(); }
NumericRepresentation { public int getScale(MonetaryAmount amount){ throw new UnsupportedOperationException(); } }
NumericRepresentation { public int getScale(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  }
NumericRepresentation { public int getScale(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  BigDecimal getBigDecimal(MonetaryAmount amount); long getLongTruncated(MonetaryAmount amount); int getPrecision(MonetaryAmount amount); int getScale(MonetaryAmount amount); long getFractionDenominator(MonetaryAmount amount); long getFractionNumerator(MonetaryAmount amount); Class<?> getNumberType(MonetaryAmount amount); Number getNumber(MonetaryAmount amount); }
NumericRepresentation { public int getScale(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  BigDecimal getBigDecimal(MonetaryAmount amount); long getLongTruncated(MonetaryAmount amount); int getPrecision(MonetaryAmount amount); int getScale(MonetaryAmount amount); long getFractionDenominator(MonetaryAmount amount); long getFractionNumerator(MonetaryAmount amount); Class<?> getNumberType(MonetaryAmount amount); Number getNumber(MonetaryAmount amount);  }