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

doubleminDelta(double a, double b)
min Delta
return Math.min(relDelta(a, b), absDelta(a, b));
floatminDivisibleNumber(float yourDividend, float divisor)
min Divisible Number
return yourDividend - (yourDividend % divisor);
floatminF(float a, float b)
Unchecked implementation to determine the smaller of two Floats.
return a < b ? a : b;
intminFileBuf(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);
StringminifiedJS(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");
...
StringminifyPubkey(String pubkey)
Return a small string, for the given pubkey.
if (pubkey == null || pubkey.length() < 6) {
    return pubkey;
return pubkey.substring(0, 6);
IntegerminIgnoreNull(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);
intminimalIndexOf(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;
...
StringminimiseSpaces(String input)
minimise Spaces
return repeatedlyReplace(input, "  ", " ");
voidminimize(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;
...