Java BigDecimal nvlZero(BigDecimal num)

Here you can find the source of nvlZero(BigDecimal num)

Description

nvl Zero

License

Open Source License

Declaration

public static BigDecimal nvlZero(BigDecimal num) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    public static BigDecimal nvlZero(BigDecimal num) {
        return num == null ? BigDecimal.ZERO : num;
    }//from  ww  w . j a  v  a2  s. c o m

    public static Long nvlZero(Long num) {
        return num == null ? new Long(0) : num;
    }
}

Related

  1. movePoint(final BigDecimal v1, final int shift)
  2. moveRight(BigDecimal value, int offset)
  3. nullSafeCompare(BigDecimal pPremierNombre, BigDecimal pSecondNombre)
  4. numberToWordsWithDecimal(BigDecimal value)
  5. nvl(final BigDecimal bigDecimal)
  6. objectToBigDecimal(Object object)
  7. objToBigDecimal(Object obj)
  8. PackUnit2Uom(BigDecimal packUit, String eachUnitName)
  9. percent0(final BigDecimal c, final BigDecimal percent)