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

doublemin8(double v1, double v2, double v3, double v4, double v5, double v6, double v7, double v8)
min
return Math.min(min4(v1, v2, v3, v4), min4(v5, v6, v7, v8));
intMIN_MAX(int min, int mid, int max)
MIMAX
return mid < min ? min : mid > max ? max : mid;
intminChar(String input)
Get the minimum character within the String object.
if (input == null) {
    throw new NullPointerException();
int min = 0;
int len = input.length();
int ch = 0;
for (int i = 0; i < len; i++) {
    ch = input.charAt(i);
...
intminCharsForCriteria(final int length, final int criteria)
Identifies the number of characters in a string of a given length that match the given percentage.
final int i = length * criteria;
final int remainder = i % 100;
if (remainder >= 50)
    return (i / 100) + 1;
return i / 100;
intminCommonMultiple(int m, int n)
min Common Multiple
return m * n / maxCommonDivisor(m, n);
TminComparable(T first, T second)
min Comparable
return first.compareTo(second) <= 0 ? first : second;
intminCoverageEstimate(short mask)
min Coverage Estimate
int coverage = 15 & mask;
coverage += 15 & (mask >>> 4);
coverage += 15 & (mask >>> 8);
coverage += 15 & (mask >>> 12);
return coverage;
intminCurveSegmentLength(String segmentTypeName)
Indicates the minimum number of direct positions required to specify a GML curve segment.
int minLength = 2;
if (segmentTypeName.endsWith("ByCenterPoint")) {
    minLength = 1;
} else if (segmentTypeName.equals("ArcString") || segmentTypeName.equals("Arc")
        || segmentTypeName.equals("Circle")) {
    minLength = 3;
return minLength;
...
intminDark(final int colorValue)
min Dark
return colorValue / 2;
longminDeg2Bigger(long number)
Calculate the minimum number n, that:
1) n >= number;
2) n = 2k for some number k
long result = 1;
while (result < number)
    result <<= 1;
return result;