List of utility methods to do Integer Between
boolean | between(int column, int line, int startCol, int startLine, int endCol, int endLine) between if (line < startLine || line > endLine) { return false; if (line == startLine && column < startCol) { return false; if (line == endLine && column > endCol) { return false; ... |
boolean | between(int coord, int limit) between return (coord >= 0) && (coord < limit);
|
boolean | between(int floor, int x, int ceiling) between return (floor < x) && (x < ceiling);
|
int | between(int number, int from, int to) between return (number >> from) & ((1 << to - from) - 1);
|
boolean | between(int value, int lower, int upper) between return (value >= lower) && (value <= upper);
|
boolean | between(int value, int min, int max) Checks if value is (inclusively) between min and max. return value >= min && value <= max;
|
int | between(int value, int min, int max) Return min if value return Math.max(Math.min(max, value), min);
|
boolean | between(int x, int a, int b) Check whether x is in interval [a, b] return x >= a && x <= b;
|