Java BigDecimal Max max(BigDecimal one, BigDecimal other)

Here you can find the source of max(BigDecimal one, BigDecimal other)

Description

max

License

Open Source License

Parameter

Parameter Description
one a parameter
other a parameter

Return

de grootste van beide

Declaration

public static final BigDecimal max(BigDecimal one, BigDecimal other) 

Method Source Code


//package com.java2s;
import java.math.BigDecimal;

public class Main {
    /**/*from   w w w  .j a  v  a2  s  . c o  m*/
     * @param one
     * @param other
     * @return de grootste van beide
     */
    public static final BigDecimal max(BigDecimal one, BigDecimal other) {
        return (one.compareTo(other) > 0 ? one : other);
    }
}

Related

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