org.teleal.cling.model.types
Class FloatDatatype

java.lang.Object
  extended by org.teleal.cling.model.types.AbstractDatatype<Float>
      extended by org.teleal.cling.model.types.FloatDatatype
All Implemented Interfaces:
Datatype<Float>

public class FloatDatatype
extends AbstractDatatype<Float>

Author:
Christian Bauer

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.teleal.cling.model.types.Datatype
Datatype.Builtin, Datatype.Default
 
Constructor Summary
FloatDatatype()
           
 
Method Summary
 Float valueOf(String s)
          Transforms a string representation into a value of the supported type.
 
Methods inherited from class org.teleal.cling.model.types.AbstractDatatype
getBuiltin, getDisplayString, getString, getValueType, isValid, setBuiltin, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FloatDatatype

public FloatDatatype()
Method Detail

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 © 2010 Teleal GmbH, Switzerland. All Rights Reserved.