Class CoderDate

    • Field Detail

      • it

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

      • CoderDate

        public CoderDate()
    • Method Detail

      • getType

        public Class<Date> getType()
        Specified by:
        getType in interface ICoder<Date>
        Returns:
        The type this Coder is applied to
      • encode

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

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