Here you can find the source of greaterThan(BigDecimal val, double threshold)
public static boolean greaterThan(BigDecimal val, double threshold)
//package com.java2s; import static java.util.Objects.requireNonNull; import java.math.BigDecimal; public class Main { public static boolean greaterThan(BigDecimal val, double threshold) { requireNonNull(val); return val.compareTo(BigDecimal.valueOf(threshold)) > 0; }/*from w w w .jav a2 s . c om*/ public static boolean greaterThan(BigDecimal val, BigDecimal threshold) { requireNonNull(val); return val.compareTo(threshold) > 0; } }