Class FromZonedDateTimeToDateConverter

java.lang.Object
overit.geocallapp.utilities.rs.converter.ZonedDateTimeConverter
overit.geocallapp.utilities.rs.converter.FromZonedDateTimeToDateConverter
All Implemented Interfaces:
Converter<ZonedDateTime,Date>, ConditionalConverter<ZonedDateTime,Date>

public class FromZonedDateTimeToDateConverter extends ZonedDateTimeConverter implements ConditionalConverter<ZonedDateTime,Date>
A ConditionalConverter implementation that transforms ZonedDateTime objects into Date objects.
This converter is designed to be registered with M2Mapper and searches for a TimeZoneResolver for the input entity to use in data conversion.
If there isn't a specific TimeZoneResolver, a default implementation associated with the system TimeZone is used.
Since:
1.0
  • Constructor Details

    • FromZonedDateTimeToDateConverter

      public FromZonedDateTimeToDateConverter()
      Creates a new instance of the converter with default time zone handling.
    • FromZonedDateTimeToDateConverter

      public FromZonedDateTimeToDateConverter(TimeZone timeZone)
      Creates a new instance of the converter with a specific time zone.
      Parameters:
      timeZone - the TimeZone to use for conversions
  • Method Details