Java BigDecimal releaseNull(BigDecimal amount)

Here you can find the source of releaseNull(BigDecimal amount)

Description

release Null

License

Open Source License

Declaration

public static BigDecimal releaseNull(BigDecimal amount) 

Method Source Code


//package com.java2s;
import java.math.BigDecimal;

public class Main {

    public static BigDecimal releaseNull(BigDecimal amount) {
        return amount == null ? BigDecimal.ZERO : amount;
    }//w  ww  .ja v  a2  s . c o m
}

Related

  1. randomBigDecimalList(BigDecimal min, BigDecimal max, int minLength, int maxLength)
  2. rangedValue(BigDecimal lower, BigDecimal upper, Random random)
  3. readBigDecimal(byte valueBytes[], int valueLength, int scale)
  4. readBigDecimal(DataInput in)
  5. readBigDecimal(final Object object)
  6. removeTrailingZeros(final BigDecimal bd)
  7. removeVAT(int priceInCents, BigDecimal vat)
  8. reverseSign(BigDecimal decimal)
  9. rundeKaufmaennisch( BigDecimal bigDecimal, int stellen)