java.lang.Object
com.newmediaworks.taglib.payment.CurrencyUtil
Utilities for working with
Currency
.- Author:
- New Media Works
-
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimal
parseCurrency
(String value) Parsing for a currency.
-
Method Details
-
parseCurrency
Parsing for a currency. Strips all'$'
or','
then parses withBigDecimal(java.lang.String)
.TODO: This is a US-locale specific implementation. Should probably not make public again until a more locale-aware implementation is provided.
- Parameters:
value
- Whennull
or empty (after trimming), returnsnull
-