public static boolean isIntegerInRange(int number, int firstBoundary, int secondBoundary, boolean inclusive) {
		int minimum, maximum;
		
		if (firstBoundary < secondBoundary) {
			minimum = firstBoundary;
			maximum = secondBoundary;
		} else {
			minimum = secondBoundary;
			maximum = firstBoundary;
		}
		if (inclusive) {
			return minimum <= number && number <= maximum;
		} else {
			return minimum < number && number < maximum;
		}
	}