Java BigDecimal Value Check isNotZeroPositive(BigDecimal value)

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

Description

Return true if value is greater than zero.

License

Open Source License

Parameter

Parameter Description
value a parameter

Declaration

public static final boolean isNotZeroPositive(BigDecimal value) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {
    /**/*from w w  w . j  a v a2 s.c o m*/
     * Return <code>true</code> if value is greater than zero.
     * 
     * @param value
     * @return
     */
    public static final boolean isNotZeroPositive(BigDecimal value) {
        return value != null && value.compareTo(BigDecimal.ZERO) > 0;
    }
}

Related

  1. isNegative(BigDecimal amount)
  2. isNegative(BigDecimal inValue)
  3. isNotNullOrZero(final BigDecimal number)
  4. isNotSameAbsValue(final BigDecimal v1, final BigDecimal v2)
  5. isNotZero(final BigDecimal value)
  6. isNull(BigDecimal bdg)
  7. isNull(final BigDecimal s)
  8. isNullOrZero(BigDecimal number)
  9. isNullOrZero(BigDecimal value)