Class DateToZonedDateTimeConverter
java.lang.Object
tech.corefinance.common.converter.DateToZonedDateTimeConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<Date,,ZonedDateTime> org.springframework.core.convert.converter.GenericConverter
@Component
@ConditionalOnProperty(name="tech.corefinance.app.converter.zoned-date-time-to-string",
havingValue="true",
matchIfMissing=true)
@ReadingConverter
public class DateToZonedDateTimeConverter
extends Object
implements org.springframework.core.convert.converter.GenericConverter, org.springframework.core.convert.converter.Converter<Date,ZonedDateTime>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
org.springframework.core.convert.converter.GenericConverter.ConvertiblePair -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
DateToZonedDateTimeConverter
public DateToZonedDateTimeConverter()
-
-
Method Details
-
convert
- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<Date,ZonedDateTime>
-
getConvertibleTypes
public Set<org.springframework.core.convert.converter.GenericConverter.ConvertiblePair> getConvertibleTypes()- Specified by:
getConvertibleTypesin interfaceorg.springframework.core.convert.converter.GenericConverter
-
convert
public Object convert(Object source, org.springframework.core.convert.TypeDescriptor sourceType, org.springframework.core.convert.TypeDescriptor targetType) - Specified by:
convertin interfaceorg.springframework.core.convert.converter.GenericConverter
-