org.springframework.web.bind
Class ServletRequestUtils.DoubleParser
java.lang.Object
org.springframework.web.bind.ServletRequestUtils.ParameterParser<java.lang.Double>
org.springframework.web.bind.ServletRequestUtils.DoubleParser
- Enclosing class:
- ServletRequestUtils
private static class ServletRequestUtils.DoubleParser
- extends ServletRequestUtils.ParameterParser<java.lang.Double>
Method Summary |
protected java.lang.Double |
doParse(java.lang.String parameter)
|
protected java.lang.String |
getType()
|
double |
parseDouble(java.lang.String name,
java.lang.String parameter)
|
double[] |
parseDoubles(java.lang.String name,
java.lang.String[] values)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletRequestUtils.DoubleParser
private ServletRequestUtils.DoubleParser()
getType
protected java.lang.String getType()
- Specified by:
getType
in class ServletRequestUtils.ParameterParser<java.lang.Double>
doParse
protected java.lang.Double doParse(java.lang.String parameter)
throws java.lang.NumberFormatException
- Specified by:
doParse
in class ServletRequestUtils.ParameterParser<java.lang.Double>
- Throws:
java.lang.NumberFormatException
parseDouble
public double parseDouble(java.lang.String name,
java.lang.String parameter)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException
parseDoubles
public double[] parseDoubles(java.lang.String name,
java.lang.String[] values)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException