Java BigDecimal Min min(BigDecimal... amounts)

Here you can find the source of min(BigDecimal... amounts)

Description

min

License

Open Source License

Declaration

public static BigDecimal min(BigDecimal... amounts) 

Method Source Code


//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;
    }
}

Related

  1. min(BigDecimal a, BigDecimal b)
  2. min(BigDecimal b1, BigDecimal b2)
  3. min(BigDecimal one, BigDecimal other)
  4. min(final BigDecimal bd1, final BigDecimal bd2)
  5. min(final BigDecimal v1, final BigDecimal v2)
  6. min(List numbers)
  7. minimum(BigDecimal... decimals)