Java BigDecimal Value Check isAllBlank(BigDecimal[] values)

Here you can find the source of isAllBlank(BigDecimal[] values)

Description

is All Blank

License

Apache License

Declaration

public static boolean isAllBlank(BigDecimal[] values) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.math.BigDecimal;

public class Main {

    public static boolean isAllBlank(BigDecimal[] values) {
        boolean and = true;
        for (BigDecimal value : values) {
            and = and && isBlank(value);
        }/*w w  w  . j  a  v a  2 s .  co m*/
        return and;
    }

    public static boolean isBlank(BigDecimal value) {
        return (value == null || value.signum() == 0);
    }
}

Related

  1. isAbsBetweenZeroAndOne(BigDecimal newValue)
  2. isBetweenAAndB(final BigDecimal target, final BigDecimal a, final BigDecimal b)
  3. isBlank(BigDecimal value)
  4. isDivisible(BigDecimal num1, BigDecimal num2)
  5. isDouble(BigDecimal number)