public void
check(int val) {
	if (val < 0 || val > max) {
		throw new IllegalArgumentException(description + " " + val +
						   "is out of range");
	}
}
Checks that a numeric value is within the range [0..max]
src/main/java/core/org/xbill/DNS/Mnemonic.java