org.teleal.cling.model.types
Class FloatDatatype
java.lang.Object
org.teleal.cling.model.types.AbstractDatatype<Float>
org.teleal.cling.model.types.FloatDatatype
- All Implemented Interfaces:
- Datatype<Float>
public class FloatDatatype
- extends AbstractDatatype<Float>
- Author:
- Christian Bauer
Method Summary |
Float |
valueOf(String s)
Transforms a string representation into a value of the supported type. |
FloatDatatype
public FloatDatatype()
valueOf
public Float valueOf(String s)
throws InvalidValueException
- Description copied from interface:
Datatype
- Transforms a string representation into a value of the supported type.
- Parameters:
s
- The string representation of a value.
- Returns:
- The converted value or
null
if the string was null
or empty.
- Throws:
InvalidValueException
- If the string couldn't be parsed.
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.