Class CurrencyUtil

    • Method Detail

      • 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