Here you can find the source of getBdIgnoreNull(BigDecimal bigDecimalPara)
public static BigDecimal getBdIgnoreNull(BigDecimal bigDecimalPara)
//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 }