ninja.params
Class ParamParsers.DoubleParamParser

java.lang.Object
  extended by ninja.params.ParamParsers.DoubleParamParser
All Implemented Interfaces:
ParamParser<Double>
Enclosing class:
ParamParsers

public static class ParamParsers.DoubleParamParser
extends Object
implements ParamParser<Double>


Constructor Summary
ParamParsers.DoubleParamParser()
           
 
Method Summary
 Class<Double> getParsedType()
          Get the type that this parser parses to
 Double parseParameter(String field, String parameterValue, Validation validation)
          Parse the given parameter value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParamParsers.DoubleParamParser

public ParamParsers.DoubleParamParser()
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 interface ParamParser<Double>
Parameters:
field - The field that is being parsed
parameterValue - 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 interface ParamParser<Double>
Returns:
The type


Copyright © 2012. All Rights Reserved.