Class StringToDurationConverter

  • All Implemented Interfaces:
    org.springframework.core.convert.converter.Converter<String,​Duration>

    public class StringToDurationConverter
    extends Object
    implements org.springframework.core.convert.converter.Converter<String,​Duration>
    Convert a String to a Duration.
    • Constructor Detail

      • StringToDurationConverter

        public StringToDurationConverter()
    • Method Detail

      • convert

        public Duration convert​(String s)
        Specified by:
        convert in interface org.springframework.core.convert.converter.Converter<String,​Duration>