org.springframework.web.bind
Class ServletRequestUtils.FloatParser
java.lang.Object
org.springframework.web.bind.ServletRequestUtils.ParameterParser<java.lang.Float>
org.springframework.web.bind.ServletRequestUtils.FloatParser
- Enclosing class:
- ServletRequestUtils
private static class ServletRequestUtils.FloatParser
- extends ServletRequestUtils.ParameterParser<java.lang.Float>
Method Summary |
protected java.lang.Float |
doParse(java.lang.String parameter)
|
protected java.lang.String |
getType()
|
float |
parseFloat(java.lang.String name,
java.lang.String parameter)
|
float[] |
parseFloats(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.FloatParser
private ServletRequestUtils.FloatParser()
getType
protected java.lang.String getType()
- Specified by:
getType
in class ServletRequestUtils.ParameterParser<java.lang.Float>
doParse
protected java.lang.Float doParse(java.lang.String parameter)
throws java.lang.NumberFormatException
- Specified by:
doParse
in class ServletRequestUtils.ParameterParser<java.lang.Float>
- Throws:
java.lang.NumberFormatException
parseFloat
public float parseFloat(java.lang.String name,
java.lang.String parameter)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException
parseFloats
public float[] parseFloats(java.lang.String name,
java.lang.String[] values)
throws ServletRequestBindingException
- Throws:
ServletRequestBindingException