List of utility methods to do Number Min Value
double | minDelta(double a, double b) min Delta return Math.min(relDelta(a, b), absDelta(a, b));
|
float | minDivisibleNumber(float yourDividend, float divisor) min Divisible Number return yourDividend - (yourDividend % divisor);
|
float | minF(float a, float b) Unchecked implementation to determine the smaller of two Floats. return a < b ? a : b;
|
int | minFileBuf(long fileSize, int bufSize) min File Buf int fileLeftOver = Integer.MAX_VALUE; long _maxInt = (long) Integer.MAX_VALUE; if (fileSize < _maxInt) { fileLeftOver = (int) fileSize; return Math.min(bufSize, fileLeftOver); |
String | minifiedJS(String url) minified JS if (url == null || url.isEmpty()) { throw new IllegalArgumentException("URL should not be blank"); if (url.toLowerCase().endsWith(".min.js")) { return url; if (url.toLowerCase().startsWith("/resources/")) { return url.replaceAll("\\.js$", ".min.js"); ... |
String | minifyPubkey(String pubkey) Return a small string, for the given pubkey. if (pubkey == null || pubkey.length() < 6) { return pubkey; return pubkey.substring(0, 6); |
Integer | minIgnoreNull(Integer a, Integer b) Gets the minimum integer, ignoring if one arg is null. if (a == null) return b; if (b == null) return a; return Math.min(a, b); |
int | minimalIndexOf(String str, String separators, int startIndex) minimal Index Of int k = -1; for (int i = 0; i < separators.length(); i++) { int t = str.indexOf(separators.charAt(i), startIndex); if (t != -1) { k = (k == -1) ? t : Math.min(k, t); return k; ... |
String | minimiseSpaces(String input) minimise Spaces return repeatedlyReplace(input, " ", " "); |
void | minimize(final StringBuilder src) Removes all whitespace characters from the string buffer boolean hasWhiteSpaces = true; while (hasWhiteSpaces) { int start; for (start = 0; start < src.length() && (!Character.isWhitespace(src.charAt(start))); start++) { hasWhiteSpaces = start != src.length(); if (hasWhiteSpaces) { int end; ... |