Java BigDecimal Value Check isNull(final BigDecimal s)

Here you can find the source of isNull(final BigDecimal s)

Description

is Null

License

Open Source License

Declaration

final public static boolean isNull(final BigDecimal s) 

Method Source Code

//package com.java2s;
// License as published by the Free Software Foundation; either

import java.math.BigDecimal;

public class Main {
    public static final BigDecimal NULL_BD = new BigDecimal(0);

    final public static boolean isNull(final BigDecimal s) {
        return ((s == null) || (s.compareTo(NULL_BD) == 0));
    }/*from  w  w w  . j a v a 2s. co  m*/
}

Related

  1. isNotNullOrZero(final BigDecimal number)
  2. isNotSameAbsValue(final BigDecimal v1, final BigDecimal v2)
  3. isNotZero(final BigDecimal value)
  4. isNotZeroPositive(BigDecimal value)
  5. isNull(BigDecimal bdg)
  6. isNullOrZero(BigDecimal number)
  7. isNullOrZero(BigDecimal value)
  8. isParseableBigDecimal(String string)
  9. isPositive(BigDecimal number)