Java BigDecimal Create getBdIgnoreNull(BigDecimal bigDecimalPara)

Here you can find the source of getBdIgnoreNull(BigDecimal bigDecimalPara)

Description

get Bd Ignore Null

License

Open Source License

Declaration

public static BigDecimal getBdIgnoreNull(BigDecimal bigDecimalPara) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {
    public static BigDecimal getBdIgnoreNull(BigDecimal bigDecimalPara) {
        return bigDecimalPara == null ? new BigDecimal(0) : bigDecimalPara;
    }//from w  ww.j a  v  a 2  s  . c o  m
}

Related

  1. bigDecimalValueOf(Number n)
  2. createBigDecimal(double v)
  3. createBigDecimal(final String value)
  4. createBigDecimal(Object value)
  5. createBigDecimal(String val)
  6. getBigDecimal(BigDecimal bigDecimal)
  7. getBigDecimal(double value, int decimals)
  8. getBigDecimal(final String str, final int scale)
  9. getBigDecimal(JsonObject object, String memberName)