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