Money implements Serializable, Comparable<Object> { public long getCent() { return this.cent; } Money();  Money(long yuan, int cent);  Money(long yuan, int cent, Currency currency);  Money(String amount);  Money(String amount, Currency currency);  Money(String amount, Currency currency, int roundingMode);  Money(double amount);  Money(double amount, Currency currency);  Money(BigDecimal amount);  Money(BigDecimal amount, int roundingMode);  Money(BigDecimal amount, Currency currency);  Money(BigDecimal amount, Currency currency, int roundingMode); BigDecimal getAmount(); void setAmount(BigDecimal amount); long getCent(); String getCurrencyCode(); int getCentFactor(); boolean equals(Object other); boolean equals(Money other); int hashCode(); int compareTo(Object other); int compareTo(Money other); boolean greaterThan(Money other); Money add(Money other); Money addTo(Money other); Money subtract(Money other); Money subtractFrom(Money other); Money multiply(long val); Money multiplyBy(long val); Money multiply(double val); Money multiplyBy(double val); Money multiply(BigDecimal val); Money multiplyBy(BigDecimal val); Money multiply(BigDecimal val, int roundingMode); Money multiplyBy(BigDecimal val, int roundingMode); Money divide(double val); Money divideBy(double val); Money divide(BigDecimal val); Money divide(BigDecimal val, int roundingMode); Money divideBy(BigDecimal val); Money divideBy(BigDecimal val, int roundingMode); Money[] allocate(int targets); Money[] allocate(long[] ratios); String toString(); String dump(); void setCent(long cent); String getDisplayUnit(); String getDisplayUnit(Locale e); static final String DEFAULT_CURRENCY_CODE; static final int DEFAULT_ROUNDING_MODE; }
@Test public void getCent() { assertEquals(10 * 100 + 10, money.getCent()); }