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