public class Currency extends Object
In the future, this should convert to and from BigDecimal or Double
| Constructor and Description |
|---|
Currency(long newValue)
constructor that takes a long already in COM representation
|
Currency(String newValue)
constructor that takes a String already in COM representation
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Currency anotherCurrency)
compares the values of two currencies
|
int |
compareTo(Object o)
standard comparison
|
boolean |
equals(Object o) |
protected Long |
getLongValue()
getter to the inner storage so that cmpareTo can work
|
long |
longValue() |
public Currency(long newValue)
newValue - public Currency(String newValue)
newValue - public long longValue()
protected Long getLongValue()
public int compareTo(Currency anotherCurrency)
anotherCurrency - public int compareTo(Object o)
o - must be Currency or Longhttp://jacob-project.sourceforge.net