Package ninja.params
Class ParamParsers.PrimitiveShortParamParser
- java.lang.Object
-
- ninja.params.ParamParsers.PrimitiveShortParamParser
-
- All Implemented Interfaces:
ParamParser<Short>
- Enclosing class:
- ParamParsers
public static class ParamParsers.PrimitiveShortParamParser extends Object implements ParamParser<Short>
-
-
Constructor Summary
Constructors Constructor Description PrimitiveShortParamParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Short>getParsedType()Get the type that this parser parses toShortparseParameter(String field, String parameterValue, Validation validation)Parse the given parameter value
-
-
-
Method Detail
-
parseParameter
public Short parseParameter(String field, String parameterValue, Validation validation)
Description copied from interface:ParamParserParse the given parameter value- Specified by:
parseParameterin interfaceParamParser<Short>- Parameters:
field- The field that is being parsedparameterValue- The value to parse. May be null.validation- The validation context.- Returns:
- The parsed parameter value. May be null.
-
getParsedType
public Class<Short> getParsedType()
Description copied from interface:ParamParserGet the type that this parser parses to- Specified by:
getParsedTypein interfaceParamParser<Short>- Returns:
- The type
-
-