public class Money extends Object
| Constructor and Description |
|---|
Money() |
Money(BigDecimal amount) |
Money(int i) |
Money(String s) |
| Modifier and Type | Method and Description |
|---|---|
Money |
add(Money other) |
boolean |
equals(Object obj) |
BigDecimal |
getAmount() |
int |
hashCode() |
boolean |
isGreaterThanOrEqual(Money other) |
void |
setAmount(BigDecimal amount) |
Money |
subtract(Money other) |
String |
toString() |
public static final Money ZERO
public Money()
public Money(int i)
public Money(String s)
public Money(BigDecimal amount)
public BigDecimal getAmount()
public void setAmount(BigDecimal amount)
public boolean isGreaterThanOrEqual(Money other)
Copyright © 2020. All rights reserved.