Class DoublePointConverter

  • All Implemented Interfaces:
    org.directwebremoting.extend.Converter, org.directwebremoting.extend.NamedConverter

    public class DoublePointConverter
    extends org.directwebremoting.convert.BeanConverter
    The 8 decimal precision of a double is just a waste of bandwidth in most cases. This converter just truncs the precision to 3 when the double gets converted to a string.
    Author:
    kelsey
    • Field Summary

      • Fields inherited from class org.directwebremoting.convert.BasicObjectConverter

        converterManager, exclusions, inclusions, instanceType, javascript
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.directwebremoting.extend.OutboundVariable convertOutbound​(Object data, org.directwebremoting.extend.OutboundContext outctx)  
      • Methods inherited from class org.directwebremoting.convert.BeanConverter

        createTypeHintContext, getPropertyMapFromClass, getPropertyMapFromObject
      • Methods inherited from class org.directwebremoting.convert.BasicObjectConverter

        convertInbound, extractInboundTokens, getConverterManager, getInstanceType, getJavascript, isAllowedByIncludeExcludeRules, setConverterManager, setExclude, setImplementation, setInclude, setInstanceType, setJavascript
      • Methods inherited from interface org.directwebremoting.extend.Converter

        convertInbound, setConverterManager
    • Constructor Detail

      • DoublePointConverter

        public DoublePointConverter()
    • Method Detail

      • convertOutbound

        public org.directwebremoting.extend.OutboundVariable convertOutbound​(Object data,
                                                                             org.directwebremoting.extend.OutboundContext outctx)
                                                                      throws org.directwebremoting.extend.MarshallException
        Specified by:
        convertOutbound in interface org.directwebremoting.extend.Converter
        Overrides:
        convertOutbound in class org.directwebremoting.convert.BasicObjectConverter
        Throws:
        org.directwebremoting.extend.MarshallException