Class DurationToStringConverter

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

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

      • DurationToStringConverter

        public DurationToStringConverter()
    • Method Detail

      • convert

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