|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.util.CurrencyUtil
public class CurrencyUtil
Currency related utility functions.
| Field Summary | |
|---|---|
protected static NumberFormat |
_dollarFormatter
A number format for formatting dollars. |
| Constructor Summary | |
|---|---|
CurrencyUtil()
|
|
| Method Summary | |
|---|---|
static String |
currency(double value,
Locale locale)
Converts a number representing currency in the specified locale to a displayable string. |
protected static String |
currency(double value,
NumberFormat nformat)
Converts a number representing dollars to a currency display string using the supplied number format. |
static String |
currencyPennies(double value,
Locale locale)
Converts a number representing pennies to a locale-appropriate currency display string using the supplied local. |
static String |
dollars(double value)
Converts a number representing dollars to a currency display string using the US locale. |
static String |
dollarsPennies(double value)
Converts a number representing pennies to a dollars display string using the US local. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static NumberFormat _dollarFormatter
| Constructor Detail |
|---|
public CurrencyUtil()
| Method Detail |
|---|
public static String currencyPennies(double value,
Locale locale)
public static String currency(double value,
Locale locale)
public static String dollarsPennies(double value)
public static String dollars(double value)
protected static String currency(double value,
NumberFormat nformat)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||