Class FromZonedDateTimeRangeToDateTimeRangeConverter

java.lang.Object
overit.geocallapp.utilities.rs.converter.ZonedDateTimeConverter
overit.geocallapp.utilities.rs.converter.FromZonedDateTimeRangeToDateTimeRangeConverter
All Implemented Interfaces:
Converter<ZonedDateTimeRange,DateTimeRange>, ConditionalConverter<ZonedDateTimeRange,DateTimeRange>

public class FromZonedDateTimeRangeToDateTimeRangeConverter extends ZonedDateTimeConverter implements ConditionalConverter<ZonedDateTimeRange,DateTimeRange>
A ConditionalConverter implementation that transforms ZonedDateTimeRange objects into DateTimeRange 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

    • FromZonedDateTimeRangeToDateTimeRangeConverter

      public FromZonedDateTimeRangeToDateTimeRangeConverter()
      Creates a new instance of the converter with default timezone handling.
    • FromZonedDateTimeRangeToDateTimeRangeConverter

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