* @param valueSize - the value size
* @param maxValueSize - the max value size
*/
public static void checkMaxValueSize(int valueSize, int maxValueSize) {
if(valueSize < 0 || valueSize > maxValueSize) {
throw new InvalidDataException("Invalid value size: " + valueSize + " max: " + maxValueSize);
}
}