public class StringToDoubleConverter extends Object implements TypeConverter<String,Double>
TypeConverter
that converts String values (on the physical layer)
to interpreted Doubles.Constructor and Description |
---|
StringToDoubleConverter() |
Modifier and Type | Method and Description |
---|---|
String |
toPhysicalValue(Double virtualValue)
Converts a virtual representation of a value into it's physical value.
|
Double |
toVirtualValue(String physicalValue)
Converts a physical value into it's virtual representation.
|
public String toPhysicalValue(Double virtualValue)
toPhysicalValue
in interface TypeConverter<String,Double>
virtualValue
- the virtual representationpublic Double toVirtualValue(String physicalValue)
toVirtualValue
in interface TypeConverter<String,Double>
physicalValue
- the physical valueCopyright © 2007–2014 The Apache Software Foundation. All rights reserved.