List of utility methods to do Number Min Value
double | min8(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));
|
int | MIN_MAX(int min, int mid, int max) MIMAX return mid < min ? min : mid > max ? max : mid;
|
int | minChar(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); ... |
int | minCharsForCriteria(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; |
int | minCommonMultiple(int m, int n) min Common Multiple return m * n / maxCommonDivisor(m, n);
|
T | minComparable(T first, T second) min Comparable return first.compareTo(second) <= 0 ? first : second;
|
int | minCoverageEstimate(short mask) min Coverage Estimate int coverage = 15 & mask; coverage += 15 & (mask >>> 4); coverage += 15 & (mask >>> 8); coverage += 15 & (mask >>> 12); return coverage; |
int | minCurveSegmentLength(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; ... |
int | minDark(final int colorValue) min Dark return colorValue / 2;
|
long | minDeg2Bigger(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; |