Here you can find the source of max(BigDecimal a, BigDecimal b)
Parameter | Description |
---|---|
a | a parameter |
b | a parameter |
private static BigDecimal max(BigDecimal a, BigDecimal b)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { /**/*w w w.j a v a 2 s .co m*/ * Returns the maximum value between the two. * @param a * @param b * @return */ private static BigDecimal max(BigDecimal a, BigDecimal b) { if (a == null) return b; if (b == null) return a; return a.max(b); } }