Class NumberUtils

java.lang.Object
io.github.amanzat.util.NumberUtils

public final class NumberUtils extends Object
Miscellaneous Number utility methods and constants.
  • Constructor Details

    • NumberUtils

      public NumberUtils()
  • Method Details

    • safeParseDecimal

      public static BigDecimal safeParseDecimal(String strValue)
      Safely parses the specified string value to a BigDecimal ignoring nulls and blank strings.
      Parameters:
      strValue - The string value to parse
      Returns:
      The corresponding BigDecimal if the string value is valid, null otherwise.