Here you can find the source of isNullOrZero(BigDecimal value)
Parameter | Description |
---|---|
value | a parameter |
public static boolean isNullOrZero(BigDecimal value)
//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)); } }