Java BigDecimal safeNull(BigDecimal value)

Here you can find the source of safeNull(BigDecimal value)

Description

safe Null

License

Open Source License

Declaration

public static BigDecimal safeNull(BigDecimal value) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    public static BigDecimal safeNull(BigDecimal value) {
        return value == null ? BigDecimal.ZERO : value;
    }/*from  w ww .j a va 2  s . com*/
}

Related

  1. removeVAT(int priceInCents, BigDecimal vat)
  2. reverseSign(BigDecimal decimal)
  3. rundeKaufmaennisch( BigDecimal bigDecimal, int stellen)
  4. safeAdd(BigDecimal left, BigDecimal right)
  5. safeAddBD(BigDecimal bd1, BigDecimal bd2)
  6. safeToBigDecimal(Object obj1)
  7. scalarMult(BigDecimal scalar, Vector a)
  8. scale(BigDecimal b1, BigDecimal b2)
  9. scale2(BigDecimal valor)