public class Money extends Object implements Comparable<Money>
Constructor and Description |
---|
Money() |
Money(WrappedCurrency currency,
int cents) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Money m) |
boolean |
equals(Object other) |
int |
getCents() |
WrappedCurrency |
getCurrency() |
int |
hashCode() |
void |
setCents(int cents) |
void |
setCurrency(Currency currency) |
void |
setCurrency(WrappedCurrency currency) |
String |
toString() |
public Money()
public Money(WrappedCurrency currency, int cents)
public int compareTo(Money m)
compareTo
in interface Comparable<Money>
public void setCurrency(Currency currency)
public void setCurrency(WrappedCurrency currency)
public WrappedCurrency getCurrency()
public void setCents(int cents)
public int getCents()
Copyright © 2019. All rights reserved.