|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.pow2.util.NumberUtil
NumberUtil class.
Really simple numer / currency utility class. To do a better job,
I should include a real Currency class. However, coders are lazy...
Constructor Summary | |
NumberUtil()
|
Method Summary | |
static float |
euroCurrencyToFloat(String value)
Get the float value from an Euro currency string representation. |
static String |
getCurrency(Object value,
String pattern)
Get the string representation of a currency value. |
static String |
getEuroCurrency(Object value)
Get the string representation of the Euro currency value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NumberUtil()
Method Detail |
public static float euroCurrencyToFloat(String value) throws ParseException
value
- the Euro currency string representation
ParseException
- if any error occurspublic static String getEuroCurrency(Object value)
value
- the Object representing the value to parse
public static String getCurrency(Object value, String pattern)
value
- the Object representing the value to parsepattern
- the string pattern to use to parse the input value object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |