Class CoderObject

    • Field Detail

      • it

        public static final org.jsonex.core.factory.InjectableInstance<CoderObject> it
    • Constructor Detail

      • CoderObject

        public CoderObject()
    • Method Detail

      • encode

        public TDNode encode​(Object obj,
                             Type type,
                             BeanCoderContext ctx,
                             TDNode target)
        Description copied from interface: ICoder
        Encode an Object
        Specified by:
        encode in interface ICoder<Object>
        Parameters:
        obj - The Object to encode
        ctx - Encode context
        target - The target json TDNode
        Returns:
        The target passed as parameter
      • decode

        public Object decode​(TDNode tdNode,
                             Type type,
                             Object targetObj,
                             BeanCoderContext ctx)
        Description copied from interface: ICoder
        Decode an Object
        Specified by:
        decode in interface ICoder<Object>
        Parameters:
        tdNode - The json TDNode to be decoded
        type - The target type
        ctx - Decode context
        Returns:
        The decoded Object