try {
for (String Kstr : value) {
final int K = Integer.parseInt(Kstr);
if (ParameterChecker.isNumSourceSymbolsPerBlockOutOfBounds(K)) {
throw new ParameterException(String.format(
"Number of source symbols (%d) must be within [%d, %d]",
K,
ParameterChecker.minNumSourceSymbolsPerBlock(),
ParameterChecker.maxNumSourceSymbolsPerBlock()));
}
}
}
catch (NumberFormatException e) {
throw new ParameterException("Invalid number of source symbols: " + e.getMessage());
}
}