src/de/plpt/ArgumentParser/ArgumentParser.java
/**
	 * Validates a parameter due to it's ParameterInfo restrictions
	 *
	 * @param i             Index of current parameter
	 * @param parameterInfo ParameterInfo annotation definition
	 * @param parsedValue   Parsed value of parameter
	 * @throws IntervalViolationException is thrown when the interval is violated
	 */
Validates a parameter due to it's ParameterInfo restrictions
@param i             Index of current parameter
@param parameterInfo ParameterInfo annotation definition
@param parsedValue   Parsed value of parameter
@throws IntervalViolationException is thrown when the interval is violated
Validates a parameter due to it ' s ParameterInfo restrictions @param i Index of current parameter @param parameterInfo ParameterInfo annotation definition @param parsedValue Parsed value of parameter @throws IntervalViolationException is thrown when the interval is violated
private void validateParameter(int i, ParameterInfo parameterInfo, Object parsedValue) throws IntervalViolationException {
		if (parsedValue instanceof Number && ((int) parsedValue > parameterInfo.maxValue()
				|| (int) parsedValue < parameterInfo.minValue())) {
			throw new IntervalViolationException(
					String.format("Parameter[%s]'s value '%s' is not Element of interval [%s,%s]"
							, i, parsedValue, parameterInfo.minValue(), parameterInfo.maxValue()));
		}
	}
private void validateParameter ( int i , ParameterInfo parameterInfo , Object parsedValue ) throws IntervalViolationException { if ( parsedValue instanceof Number && ( ( int ) parsedValue > parameterInfo . maxValue ( ) || ( int ) parsedValue < parameterInfo . minValue ( ) ) ) { throw new IntervalViolationException ( String . format ( "Parameter[%s]'s value '%s' is not Element of interval [%s,%s]" , i , parsedValue , parameterInfo . minValue ( ) , parameterInfo . maxValue ( ) ) ) ; } }
Validates a parameter due to it's ParameterInfo restrictions
 @param i             Index of current parameter
 @param parameterInfo ParameterInfo annotation definition
 @param parsedValue   Parsed value of parameter
 @throws IntervalViolationException is thrown when the interval is violated
Validates a parameter due to it ' s ParameterInfo restrictions @param i Index of current parameter @param parameterInfo ParameterInfo annotation definition @param parsedValue Parsed value of parameter @throws IntervalViolationException is thrown when the interval is violated