Java Utililty Methods Long Number Between

List of utility methods to do Long Number Between

Description

The list of methods to do Long Number Between are organized into topic(s).

Method

booleanbetween(long max, long min, long val)
between
if (val >= max || val <= min)
    return false;
else
    return true;
booleanbetween(long target, long... ranges)
Check whether value within range
if (ranges.length == 0)
    return true;
boolean check = target >= ranges[0];
if (ranges.length > 1)
    check = check && target <= ranges[1];
return check;