public class Currency
extends java.lang.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(java.lang.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(java.lang.Object o)
standard comparison
|
boolean |
equals(java.lang.Object o) |
protected java.lang.Long |
getLongValue()
getter to the inner storage so that cmpareTo can work
|
long |
longValue() |
public Currency(long newValue)
newValue
- public Currency(java.lang.String newValue)
newValue
- public long longValue()
protected java.lang.Long getLongValue()
public int compareTo(Currency anotherCurrency)
anotherCurrency
- public int compareTo(java.lang.Object o)
o
- must be Currency or Longpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
http://jacob-project.sourceforge.net