Class 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.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • type

        public FTAType type
    • Method Detail

      • getValue

        protected Object getValue​(String input)
      • formatted

        public String formatted​(Object toFix)
      • toDouble

        public double toDouble​(String key)
      • fromDouble

        public Object fromDouble​(double value)