Interface ICoder<T>

    • Method Detail

      • getType

        Class<T> getType()
        Returns:
        The type this Coder is applied to
      • encode

        TDNode encode​(T obj,
                      Type type,
                      BeanCoderContext context,
                      TDNode target)
        Encode an Object
        Parameters:
        obj - The Object to encode
        context - Encode context
        target - The target json TDNode
        Returns:
        The target passed as parameter
      • decode

        T decode​(TDNode jsonNode,
                 Type type,
                 Object targetObj,
                 BeanCoderContext context)
        Decode an Object
        Parameters:
        jsonNode - The json TDNode to be decoded
        type - The target type
        context - Decode context
        Returns:
        The decoded Object