public final class Money
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private double |
amount |
private java.util.Currency |
currency |
Constructor and Description |
---|
Money(java.util.Currency currency,
double amount) |
Modifier and Type | Method and Description |
---|---|
double |
getAmount() |
java.util.Currency |
getCurrency() |
java.lang.String |
getCurrencyCode() |
boolean |
isCurrency(java.util.Currency instance) |
java.lang.String |
toString() |
public java.util.Currency getCurrency()
public java.lang.String getCurrencyCode()
public double getAmount()
public boolean isCurrency(java.util.Currency instance)
public java.lang.String toString()
toString
in class java.lang.Object