org.fourthline.cling.model.types
Class FloatDatatype
java.lang.Object
org.fourthline.cling.model.types.AbstractDatatype<Float>
org.fourthline.cling.model.types.FloatDatatype
- All Implemented Interfaces:
- Datatype<Float>
public class FloatDatatype
- extends AbstractDatatype<Float>
- Author:
- Christian Bauer
FloatDatatype
public FloatDatatype()
isHandlingJavaType
public boolean isHandlingJavaType(Class type)
- Specified by:
isHandlingJavaType in interface Datatype<Float>- Overrides:
isHandlingJavaType in class AbstractDatatype<Float>
- Returns:
true if this datatype can handle values of the given Java type.
valueOf
public Float valueOf(String s)
throws InvalidValueException
- Description copied from interface:
Datatype
- Transforms a string representation into a value of the supported type.
- Specified by:
valueOf in interface Datatype<Float>- Overrides:
valueOf in class AbstractDatatype<Float>
- 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 © 2013 4th Line GmbH, Switzerland. All Rights Reserved.