com.softicar.platform.common.string.parameter.IntegerParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.string.parameter;
/**
* Implementation of an integer parameter.
*
* This implementation throws an {@link InvalidParameterValueException} if the
* given value string cannot be parsed into an integer.
*
* @author Oliver Richers
*/
public class IntegerParameter extends AbstractParameter {
public IntegerParameter(String name, String valueString) {
super(name, valueString);
}
@Override
protected Integer parseValueString(String valueString) {
return Integer.parseInt(valueString);
}
}