Class InstantConverter

  • All Implemented Interfaces:
    com.thoughtworks.xstream.converters.ConverterMatcher, com.thoughtworks.xstream.converters.SingleValueConverter

    @Deprecated
    public class InstantConverter
    extends com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
    Deprecated.
    since 7.10.0. Use InstantConverter instead
    An xstream converter for Java 8 Instant. This is NOT needed for xstream 1.4.10 and newer.
    Since:
    7.6.0
    • Constructor Detail

      • InstantConverter

        public InstantConverter()
        Deprecated.
    • Method Detail

      • canConvert

        public boolean canConvert​(Class aClass)
        Deprecated.
        Specified by:
        canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
        Specified by:
        canConvert in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter
      • fromString

        public Object fromString​(String instantString)
        Deprecated.
        Specified by:
        fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
        Specified by:
        fromString in class com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter