Java Utililty Methods Number Min Value

List of utility methods to do Number Min Value

Description

The list of methods to do Number Min Value are organized into topic(s).

Method

doublemin(double a, double b)
min
return a < b ? a : b;
doublemin(double a, double b, boolean backward)
min
return backward ? Math.max(a, b) : Math.min(a, b);
doublemin(double a, double b, double c, double d)
Return smallest of four numbers.
return Math.min(Math.min(a, b), Math.min(c, d));
doublemin(double d1, double d2)
min
return d1 < d2 ? d1 : d2;
Doublemin(Double first, Double second)
min
Double firstNotNull = first;
Double secondNotNull = second;
if (firstNotNull == null) {
    firstNotNull = 0d;
if (secondNotNull == null) {
    secondNotNull = 0d;
return Math.min(firstNotNull, secondNotNull);
doublemin(double one, double two)
min
return Math.min(one, two);
doublemin(double v1, double v2, double v3, double v4)
min
double min = v1;
if (v2 < min)
    min = v2;
if (v3 < min)
    min = v3;
if (v4 < min)
    min = v4;
return min;
...
doublemin(double x, double y)
Returns the smaller of two double values, but treats NaN as the greatest possible value.
return Double.isNaN(x) ? y : Double.isNaN(y) ? x : Math.min(x, y);
floatmin(final float a, final float b)
min
return a < b ? a : b;
floatmin(final float a, final float b)
min
return a < b ? a : b;