Here you can find the source of min(BigDecimal... amounts)
public static BigDecimal min(BigDecimal... amounts)
//package com.java2s; //License from project: Open Source License import java.math.BigDecimal; public class Main { public static BigDecimal min(BigDecimal... amounts) { BigDecimal result = null; for (BigDecimal bigDecimal : amounts) { if (bigDecimal != null) { result = result == null ? bigDecimal : result.min(bigDecimal); }//w w w.jav a 2 s . c om } return result; } }