Class TestDurationConverter

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

    public class TestDurationConverter
    extends com.thoughtworks.xstream.converters.basic.LongConverter
    Provides backward compatibility for the dark times when durations were stored as doubles.
    • Constructor Detail

      • TestDurationConverter

        public TestDurationConverter()
    • Method Detail

      • fromString

        public Object fromString​(String str)
        Specified by:
        fromString in interface com.thoughtworks.xstream.converters.SingleValueConverter
        Overrides:
        fromString in class com.thoughtworks.xstream.converters.basic.LongConverter