Here you can find the source of min(Number num1, Number num2)
public static Number min(Number num1, Number num2)
//package com.java2s; //License from project: Apache License public class Main { public static Number min(Number num1, Number num2) { return (num1.doubleValue() > num2.doubleValue()) ? num2 : num1; }/*w w w . j a v a 2s.com*/ }