Package ninja.params
Class ParamParsers.PrimitiveCharacterParamParser
- java.lang.Object
-
- ninja.params.ParamParsers.PrimitiveCharacterParamParser
-
- All Implemented Interfaces:
ParamParser<Character>
- Enclosing class:
- ParamParsers
public static class ParamParsers.PrimitiveCharacterParamParser extends Object implements ParamParser<Character>
-
-
Constructor Summary
Constructors Constructor Description PrimitiveCharacterParamParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Character>
getParsedType()
Get the type that this parser parses toCharacter
parseParameter(String field, String parameterValue, Validation validation)
Parse the given parameter value
-
-
-
Method Detail
-
parseParameter
public Character parseParameter(String field, String parameterValue, Validation validation)
Description copied from interface:ParamParser
Parse the given parameter value- Specified by:
parseParameter
in interfaceParamParser<Character>
- 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<Character> getParsedType()
Description copied from interface:ParamParser
Get the type that this parser parses to- Specified by:
getParsedType
in interfaceParamParser<Character>
- Returns:
- The type
-
-