Java BigDecimal Value Check isMoreThanZero(BigDecimal decimal)

Here you can find the source of isMoreThanZero(BigDecimal decimal)

Description

is More Than Zero

License

Open Source License

Declaration

public static boolean isMoreThanZero(BigDecimal decimal) 

Method Source Code


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

import java.math.BigDecimal;

public class Main {
    public static boolean isMoreThanZero(BigDecimal decimal) {
        if (decimal != null) {
            return decimal.compareTo(BigDecimal.ZERO) > 0;
        }/*from  w ww. j  a va2s. co m*/
        return false;
    }
}

Related

  1. isLessThen(BigDecimal value1, BigDecimal value2)
  2. isLong(BigDecimal inValue)
  3. isLongNumber(BigDecimal minCar)
  4. isLowerThanOne(@Nonnull final BigDecimal aValue)
  5. isMaximumDecimalValue(BigDecimal maxValue)
  6. isNegative(BigDecimal amount)
  7. isNegative(BigDecimal inValue)
  8. isNotNullOrZero(final BigDecimal number)
  9. isNotSameAbsValue(final BigDecimal v1, final BigDecimal v2)