Class BigDecimalUtil

java.lang.Object
org.forgerock.api.util.BigDecimalUtil

public final class BigDecimalUtil extends Object
Common utility methods for dealing with BigDecimal values.
  • Method Details

    • safeValueOf

      public static BigDecimal safeValueOf(Double value)
      Convert a nullable Double into a BigDecimal value.

      If the value is null, then null is returned.

      Parameters:
      value - The value to convert to a BigDecimal.
      Returns:
      If value is not null, the BigDecimal value of the double value; otherwise, null.