List of utility methods to do Long Number Between
boolean | between(long max, long min, long val) between if (val >= max || val <= min) return false; else return true; |
boolean | between(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; |