Package org.forgerock.api.util
Class BigDecimalUtil
java.lang.Object
org.forgerock.api.util.BigDecimalUtil
Common utility methods for dealing with
BigDecimal
values.-
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimal
safeValueOf
(Double value) Convert a nullableDouble
into aBigDecimal
value.
-
Method Details
-
safeValueOf
Convert a nullableDouble
into aBigDecimal
value.If the value is
null
, thennull
is returned.- Parameters:
value
- The value to convert to aBigDecimal
.- Returns:
- If
value
is notnull
, theBigDecimal
value of the double value; otherwise,null
.
-