Package com.cobber.fta
Class StringConverter
- Object
-
- StringConverter
-
public class StringConverter extends Object
Based on the FTA Type support the ability to convert from a String to an instance of the Type, or from an instance of the type to a String (correctly formatted - based on the pattern). In addition provide routines to convert from any given FTAType to a double and back. We need this conversion in order to support the Sketch which assumes doubles as input where the ordering of the proxy double is equivalent to the ordering of the FTAType instance.
-
-
Field Summary
Fields Modifier and Type Field Description FTAType
type
TypeFormatter
typeFormatter
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
formatted(Object toFix)
Object
fromDouble(double value)
protected Object
getValue(String input)
double
toDouble(String key)
-
-
-
Field Detail
-
typeFormatter
public TypeFormatter typeFormatter
-
type
public FTAType type
-
-