Class FromDateToZonedDateTimeConverter

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

public class FromDateToZonedDateTimeConverter extends ZonedDateTimeConverter implements ConditionalConverter<Date,ZonedDateTime>
A ConditionalConverter implementation that transforms Date objects into ZonedDateTime 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 is used for time zone resolution.
Since:
1.0
  • Constructor Details

    • FromDateToZonedDateTimeConverter

      public FromDateToZonedDateTimeConverter()
      Creates a new instance with default timezone handling.
    • FromDateToZonedDateTimeConverter

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