Here you can find the source of assertParameterWithinBounds(String name, long lower, long upper, long parameter)
public static void assertParameterWithinBounds(String name, long lower, long upper, long parameter)
//package com.java2s; //License from project: Apache License public class Main { public static void assertParameterWithinBounds(String name, long lower, long upper, long parameter) { if (parameter < lower || parameter > upper) { throw new IllegalArgumentException( String.format("Invalid %s: %d (expected: %d <= n < %d)", name, parameter, lower, upper + 1)); }//from w w w .j a v a 2 s.c o m } }