Class DatadogActionConverter<T>

    • Constructor Detail

      • DatadogActionConverter

        protected DatadogActionConverter​(@Nonnull
                                         VersionedConverter<T>... converters)
        converters - The list of versioned converters. Writing is always done with the most up-to-date converter (the one with the maximum version). Reading is done with the appropriate converter (the one that has version that matches the data version). If converter with the specified version does not exist, or data has no version attribute (written by an old version of the plugin), no deserialization is performed.
    • Method Detail

      • canConvert

        public boolean canConvert​(Class type)
        Specified by:
        canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
      • marshal

        public void marshal​(Object source,
                            com.thoughtworks.xstream.converters.MarshallingContext context)
        Specified by:
        marshal in interface com.thoughtworks.xstream.converters.Converter
      • unmarshal

        public Object unmarshal​( reader,
                                com.thoughtworks.xstream.converters.UnmarshallingContext context)
        Specified by:
        unmarshal in interface com.thoughtworks.xstream.converters.Converter