java.lang.Object
com.newmediaworks.taglib.payment.CurrencyUtil

public final class CurrencyUtil extends Object
Utilities for working with Currency.
Author:
New Media Works
  • Method Details

    • parseCurrency

      public static BigDecimal parseCurrency(String value)
      Parsing for a currency. Strips all '$' or ',' then parses with BigDecimal(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 - When null or empty (after trimming), returns null