Java BigDecimal Compare greaterThanZero(BigDecimal is)

Here you can find the source of greaterThanZero(BigDecimal is)

Description

greater Than Zero

License

Open Source License

Parameter

Parameter Description
is a parameter

Return

true als de waarde groter is dan BigDecimal.ZERO en !=null

Declaration

public static final boolean greaterThanZero(BigDecimal is) 

Method Source Code


//package com.java2s;
import java.math.BigDecimal;

public class Main {
    /**//w w w . j  ava2s.c  o  m
     * @param is
     * @return true als de waarde groter is dan BigDecimal.ZERO en !=null
     */
    public static final boolean greaterThanZero(BigDecimal is) {
        return is != null && is.compareTo(BigDecimal.ZERO) > 0;
    }
}

Related

  1. greaterThan(BigDecimal decimal, double number)
  2. GreaterThan(BigDecimal one, BigDecimal two)
  3. greaterThan(BigDecimal val, double threshold)
  4. GreaterThanOrEqual(BigDecimal one, BigDecimal two)
  5. greaterThanZero(BigDecimal d)
  6. isGreater(BigDecimal a, BigDecimal b)
  7. isGreaterThanOne(@Nonnull final BigDecimal aValue)
  8. lessThan(BigDecimal val1, BigDecimal val2)
  9. lessThanZero(BigDecimal decimal)