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

doublemin2(double a, double b)
min
return a < b ? a : b;
intmin2(int a, int b)
min
if (a < b)
    return a;
return b;
longmin2msec(int min)
converts minute to millisecond
return sec2msec(min * 60);
Stringmin2sex(Integer minutes)
minsex
Integer hrs = minutes / 60;
Integer mns = minutes % 60;
StringBuilder buf = new StringBuilder();
if (hrs < 10) {
    buf.append("0");
buf.append(hrs.toString());
buf.append(":");
...
doublemin3(double a, double b, double c)
min
return Math.min(a, Math.min(b, c));
intmin3(final int x, final int y, final int z)
min
final int min = y <= z ? y : z;
return x <= min ? x : min;
intmin3(int a, int b, int c)
min
if (a < b) {
    return (a < c) ? a : c;
return (b < c) ? b : c;
intmin3(int x, int y, int z)
compute the minimum of three int variables (helper for Levenshtein)
return Math.min(x, Math.min(y, z));
doublemin4(double v1, double v2, double v3, double v4)
min
return Math.min(Math.min(v1, v2), Math.min(v3, v4));
intMIN4(int x, int y, int z, int a)
MIN
return MIN2(MIN2(x, y), MIN2(z, a));