Java BigDecimal Value Check isNullOrZero(BigDecimal value)

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

Description

Kiem tra Bigdecimal bi null hoac zero

License

Open Source License

Parameter

Parameter Description
value a parameter

Declaration

public static boolean isNullOrZero(BigDecimal value) 

Method Source Code

//package com.java2s;
/*//from w ww  .  ja va2 s .  c om
 * Copyright (C) 2010 Viettel Telecom. All rights reserved.
 * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

import java.math.BigDecimal;

public class Main {
    public static boolean isNullOrZero(Long value) {
        return (value == null || value.equals(0L));
    }

    /**
     * Kiem tra Bigdecimal bi null hoac zero
     *
     * @param value
     * @return
     */
    public static boolean isNullOrZero(BigDecimal value) {
        return (value == null || value.equals(BigDecimal.ZERO));
    }
}

Related

  1. isNotZero(final BigDecimal value)
  2. isNotZeroPositive(BigDecimal value)
  3. isNull(BigDecimal bdg)
  4. isNull(final BigDecimal s)
  5. isNullOrZero(BigDecimal number)
  6. isParseableBigDecimal(String string)
  7. isPositive(BigDecimal number)
  8. isPositive(BigDecimal value)
  9. isPrimeNumber(BigDecimal inBd)