@Test public void testGetPrecision() throws Exception{ BigDecimal bd = new BigDecimal( "1234354435654654092372883687236483274632894623894693284632864832648329462836473276352763527615382176521785321876352178654327684532765218745823745327865327654723684683468327434324.3748634"); MonetaryAmount amount = Money.of(bd, "CHF"); assertEquals("Invalid precision for " + bd, amount.getNumber().getPrecision(), np.getPrecision(amount)); }
public int getPrecision(MonetaryAmount amount){ throw new UnsupportedOperationException(); }
NumericRepresentation { public int getPrecision(MonetaryAmount amount){ throw new UnsupportedOperationException(); } }
NumericRepresentation { public int getPrecision(MonetaryAmount amount){ throw new UnsupportedOperationException(); }  }
NumericRepresentation { public int getPrecision(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 getPrecision(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);  }