Interface DateProvider

All Known Implementing Classes:
DateProviderFactory.DynamicFixedDateTimeProvider, DateProviderFactory.DynamicFloatingDateTimeProvider, DateProviderFactory.StaticDateTimeProvider

public interface DateProvider
Provides a date time value which may be the same on each invocation, or change each time, based on implementation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Static or dynamic date-time.
    The zone ID, which should always be the same for this instance, regardless whether the date-time is dynamic or static.
  • Method Details

    • getDateTime

      ZonedDateTime getDateTime()
      Static or dynamic date-time.
      Returns:
      date time.
    • getZoneId

      ZoneId getZoneId()
      The zone ID, which should always be the same for this instance, regardless whether the date-time is dynamic or static. Invoking this method should not impact the date-time generated by getDateTime().
      Returns:
      zone id