Java BigDecimal Min min(BigDecimal one, BigDecimal other)

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

Description

min

License

Open Source License

Parameter

Parameter Description
one a parameter
other a parameter

Return

de kleinste van beide

Declaration

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

Method Source Code


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

public class Main {
    /**/*from  w ww .ja va 2 s . c  om*/
     * @param one
     * @param other
     * @return de kleinste van beide
     */
    public static final BigDecimal min(BigDecimal one, BigDecimal other) {
        return (one.compareTo(other) < 0 ? one : other);
    }
}

Related

  1. min(BigDecimal a, BigDecimal b)
  2. min(BigDecimal b1, BigDecimal b2)
  3. min(BigDecimal... amounts)
  4. min(final BigDecimal bd1, final BigDecimal bd2)
  5. min(final BigDecimal v1, final BigDecimal v2)
  6. min(List numbers)