List of utility methods to do Number Min Value
double | min2(double a, double b) min return a < b ? a : b;
|
int | min2(int a, int b) min if (a < b) return a; return b; |
long | min2msec(int min) converts minute to millisecond return sec2msec(min * 60);
|
String | min2sex(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(":"); ... |
double | min3(double a, double b, double c) min return Math.min(a, Math.min(b, c));
|
int | min3(final int x, final int y, final int z) min final int min = y <= z ? y : z; return x <= min ? x : min; |
int | min3(int a, int b, int c) min if (a < b) { return (a < c) ? a : c; return (b < c) ? b : c; |
int | min3(int x, int y, int z) compute the minimum of three int variables (helper for Levenshtein) return Math.min(x, Math.min(y, z));
|
double | min4(double v1, double v2, double v3, double v4) min return Math.min(Math.min(v1, v2), Math.min(v3, v4));
|
int | MIN4(int x, int y, int z, int a) MIN return MIN2(MIN2(x, y), MIN2(z, a));
|