Java BigDecimal Max max(BigDecimal... amounts)

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

Description

max

License

Open Source License

Declaration

public static BigDecimal max(BigDecimal... amounts) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.math.BigDecimal;

public class Main {
    public static BigDecimal max(BigDecimal... amounts) {
        BigDecimal result = null;
        for (BigDecimal bigDecimal : amounts) {
            if (bigDecimal != null) {
                result = result == null ? bigDecimal : result.max(bigDecimal);
            }/*w w w.j  a v  a  2s  .c  o m*/
        }
        return result;
    }
}

Related

  1. max(BigDecimal a, BigDecimal b)
  2. max(BigDecimal b1, BigDecimal b2)
  3. max(BigDecimal one, BigDecimal other)
  4. max(BigDecimal... values)
  5. max(final BigDecimal bd1, final BigDecimal bd2)
  6. max(final List list)
  7. max(List numbers)