Here you can find the source of maxValue(BigDecimal origen, BigDecimal montoMaximo)
public static boolean maxValue(BigDecimal origen, BigDecimal montoMaximo)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static boolean maxValue(BigDecimal origen, BigDecimal montoMaximo) { if (origen == null) return false; return origen.compareTo(montoMaximo) > 0; }/*w w w . j a v a 2 s. c o m*/ }