Here you can find the source of isZeroOrNull(final BigDecimal value)
public static boolean isZeroOrNull(final BigDecimal value)
//package com.java2s; // ProjectForge is dual-licensed. import java.math.BigDecimal; public class Main { public static boolean isZeroOrNull(final Integer value) { return (value == null || value == 0); }//from ww w. j a v a 2 s.co m public static boolean isZeroOrNull(final BigDecimal value) { return (value == null || value.compareTo(BigDecimal.ZERO) == 0); } }