List of utility methods to do Number Min Value
int | minPos(int a, int b) min Pos if (a >= 0 && b >= 0) { return min(a, b); } else if (a >= 0 && b < 0) { return a; } else if (b >= 0 && a < 0) { return b; } else { return Integer.MAX_VALUE; ... |
Integer | minPositive(int a, int b) Returns the minimum positive value of the two supplied, null if both are negative. if (a < 0 && b < 0) { return null; } else if (a < 0) { return b; } else if (b < 0) { return a; } else { return Math.min(a, b); ... |
int | minPower2(int n) Find the minimal power of 2 that is larger than n. int newn = 2; while (newn < n) newn *= 2; return newn; |
int | minRunLength(int n) Returns the minimum acceptable run length for an array of the specified length. if (DEBUG) assert n >= 0; int r = 0; while (n >= MIN_MERGE) { r |= (n & 1); n >>= 1; return n + r; ... |
long | minShareLifetime(long shareLifetime1, long shareLifetime2) min Share Lifetime if (shareLifetime1 == 0) { return shareLifetime2; } else if (shareLifetime2 == 0) { return shareLifetime1; } else { return Math.min(shareLifetime1, shareLifetime2); |
int | minSignedIntForBitSize(final int bitSize) min Signed Int For Bit Size checkBitSizeForSignedInt(bitSize);
return minSignedIntForBitSize_noCheck(bitSize);
|
int | minSignedIntForBitSize_noCheck(final int bitSize) min Signed Int For Bit Sizno Check return Integer.MIN_VALUE >> 32 - bitSize;
|
boolean | minSize(String str, int min, boolean nullCheck) min Size if (nullCheck == false || isRequired(str)) { if (str == null) { return true; int len = str.trim().getBytes().length; if (len >= min) { return true; } else { ... |
float | minSPSForBandCode(String bandCode) min SPS For Band Code return minSPSForBandCode(bandCode.charAt(0));
|
long | minToS(long s) S to min long. return (s * 60L);
|