org.springframework.boot.convert

Class PeriodToStringConverter

  • java.lang.Object
    • org.springframework.boot.convert.PeriodToStringConverter
  • All Implemented Interfaces:
    org.springframework.core.convert.converter.GenericConverter


    public class PeriodToStringConverter
    extends java.lang.Object
    implements org.springframework.core.convert.converter.GenericConverter
    Converter to convert from a Period to a String.
    Since:
    2.3.0
    See Also:
    Period
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter

        org.springframework.core.convert.converter.GenericConverter.ConvertiblePair
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Object convert(java.lang.Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) 
      java.util.Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PeriodToStringConverter

        public PeriodToStringConverter()
    • Method Detail

      • getConvertibleTypes

        public java.util.Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()
        Specified by:
        getConvertibleTypes in interface org.springframework.core.convert.converter.GenericConverter
      • convert

        public java.lang.Object convert(java.lang.Object source,
                                        org.springframework.core.convert.TypeDescriptor sourceType,
                                        org.springframework.core.convert.TypeDescriptor targetType)
        Specified by:
        convert in interface org.springframework.core.convert.converter.GenericConverter