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

StringminimizeWhitespace(String str)
minimize Whitespace
str = str.trim();
StringBuilder buff = new StringBuilder();
int len = str.length();
boolean lastWasNonWhite = true;
for (int i = 0; i < len; ++i) {
    char c = str.charAt(i);
    if (Character.isWhitespace(c)) {
        if (lastWasNonWhite) {
...
floatminimum(float first, float second)
minimum
if (first < second)
    return first;
else
    return second;
floatMinimum(float x, float y)

Returns the minimum of two float values

if (x < y)
    return (x);
else
    return (y);
intminimum(int a, int b, int c)
minimum
return Math.min(Math.min(a, b), c);
intMinimum(int a, int b, int c)
Minimum
if (a <= b) {
    if (a <= c) {
        return a;
    } else {
        return c;
} else if (b <= c) {
    return b;
...
intminimum(int a, int b, int c)
Mininum of three integers
return Math.min(Math.min(a, b), c);
intminimum(int a, int b, int c)
Get minimum of three values
int mi = a;
if (b < mi)
    mi = b;
if (c < mi)
    mi = c;
return mi;
intminimum(int a, int b, int c)
Get mininum of three values.
int minValue;
minValue = a;
if (b < minValue) {
    minValue = b;
if (c < minValue) {
    minValue = c;
return minValue;
Integerminimum(Integer one, Integer two)
Returns the minimum of the two input integers taking null into account.
if (one == null) {
    return two;
} else if (two == null) {
    return one;
} else if (one < two) {
    return one;
} else {
    return two;
...
longminimum(long a, long b, long c)

Gets the minimum of three long values.

if (b < a) {
    a = b;
if (c < a) {
    a = c;
return a;