public class CurrencyUtil extends Object
| Constructor and Description |
|---|
CurrencyUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
currencyToString(long cents)
Convert a long value (denoting the cents) to a String value.
|
static long |
stringToCurrency(String currencyStr)
Convert readable String currency value to long (number of cents).
|
public static String currencyToString(long cents)
cents - cents valuespublic static long stringToCurrency(String currencyStr)
currencyStr - input currency StringNumberFormatException - if String is nor in correct formatCopyright © 2015 illucIT Software GmbH. All rights reserved.