Package io.github.amanzat.util
Class NumberUtils
java.lang.Object
io.github.amanzat.util.NumberUtils
Miscellaneous
Number utility methods and constants.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalsafeParseDecimal(String strValue) Safely parses the specified string value to aBigDecimalignoring nulls and blank strings.
-
Constructor Details
-
NumberUtils
public NumberUtils()
-
-
Method Details
-
safeParseDecimal
Safely parses the specified string value to aBigDecimalignoring nulls and blank strings.- Parameters:
strValue- The string value to parse- Returns:
- The corresponding
BigDecimalif the string value is valid,nullotherwise.
-