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 BigDecimalsafeValueOf(Double value) Convert a nullableDoubleinto aBigDecimalvalue.
-
Method Details
-
safeValueOf
Convert a nullableDoubleinto aBigDecimalvalue.If the value is
null, thennullis returned.- Parameters:
value- The value to convert to aBigDecimal.- Returns:
- If
valueis notnull, theBigDecimalvalue of the double value; otherwise,null.
-