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

intmin(int a, int b, int c)
A helper method for editDistance(String, String).
int mi;
mi = a;
if (b < mi) {
    mi = b;
if (c < mi) {
    mi = c;
return mi;
intmin(int a, int b, int c)
min
if (a > b)
    a = b;
if (a > c)
    a = c;
return a;
intmin(int idx, int orderFrom, int orderTo)
Returns the smallest index in order orderTo of healpix pixels contained by the healpix pixel of index idx in order orderFrom.
if (orderFrom > orderTo)
    throw new IllegalArgumentException("'orderFrom' must be smaller than 'orderTo'!");
return idx << ((orderTo - orderFrom) << 1);
intmin(int int1, int int2)
min
return int1 < int2 ? int1 : int2;
intmin(int num1, int num2, int num3)
min
int min = num1;
if (num2 < min) {
    min = num2;
if (num3 < min) {
    return num3;
return min;
...
intmin(int number1, int number2)
min
return number1 < number2 ? number1 : number2;
intmin(int one, int two, int three)
min
int min = one;
if (two < min) {
    min = two;
if (three < min) {
    min = three;
return min;
...
intmin(int value, int min)
min
if (min <= value)
    return value;
throw new IllegalArgumentException(value + " must not be smaller than " + min);
intmin(int x, int x2, int x3)
min
return x < x2 ? (x < x3 ? x : x3) : (x2 < x3 ? x2 : x3);
intmin(int x, int y)
min
return ((x < y) ? x : y);