@Embeddable
public class Money
extends java.lang.Object
| Constructor and Description |
|---|
Money() |
Money(java.math.BigDecimal amount) |
Money(int i) |
Money(java.lang.String s) |
| Modifier and Type | Method and Description |
|---|---|
Money |
add(Money other) |
boolean |
equals(java.lang.Object obj) |
java.math.BigDecimal |
getAmount() |
int |
hashCode() |
boolean |
isGreaterThanOrEqual(Money other) |
void |
setAmount(java.math.BigDecimal amount) |
Money |
subtract(Money other) |
java.lang.String |
toString() |
public static final Money ZERO
public Money()
public Money(int i)
public Money(java.lang.String s)
public Money(java.math.BigDecimal amount)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.math.BigDecimal getAmount()
public void setAmount(java.math.BigDecimal amount)
public boolean isGreaterThanOrEqual(Money other)