|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.lang.Number
|
+--com.jdc.math.Number
|
+--com.jdc.math.Decimal
|
+--com.jdc.math.Currency
| Field Summary |
| Fields inherited from interface com.jdc.util.DefaultLocale |
DEFAULT_LOCALE |
| Constructor Summary | |
Currency()
Constructs a new Currency object with a value of zero, i.e. |
|
Currency(double value)
Constructs a new Currency object for the specified double
value. |
|
Currency(long value)
Constructs a new Currency object for the specified long
value. |
|
Currency(String value)
Constructs a new Currency object for the specified String
value. |
|
| Method Summary | |
String |
format()
Returns a formatted String representation of this Currency
object. |
String |
format(boolean addCurrencySymbol)
Returns a formatted String representation of this Currency
object. |
static void |
main(String[] args)
Executes the unit tests for the Currency class. |
| Methods inherited from class com.jdc.math.Decimal |
add, add, add, byteValue, divide, divide, divide, doubleValue, equals, floatValue, getLocale, hashCode, intValue, isNaN, longValue, multiply, multiply, multiply, scale, set, set, set, setLocale, setScale, setScale, shortValue, subtract, subtract, subtract, toBigDecimal, toString, zero |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Currency()
Currency object with a value of zero, i.e. 0.
public Currency(double value)
Currency object for the specified double
value.
public Currency(long value)
Currency object for the specified long
value.
public Currency(String value)
Currency object for the specified String
value.
| Method Detail |
public String format()
String representation of this Currency
object.
format in class DecimalString representation of this Currency object.public String format(boolean addCurrencySymbol)
String representation of this Currency
object.
String representation of this Currency object.public static void main(String[] args)
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||