Class DateProviderFactory.StaticDateTimeProvider

java.lang.Object
com.norconex.importer.handler.condition.impl.DateProviderFactory.StaticDateTimeProvider
All Implemented Interfaces:
DateProvider
Enclosing class:
DateProviderFactory

public static class DateProviderFactory.StaticDateTimeProvider extends Object implements DateProvider
Static date-time, supplying the value passed in constructor.
  • Constructor Details

    • StaticDateTimeProvider

      public StaticDateTimeProvider(@NonNull @NonNull ZonedDateTime dateTime)
  • Method Details

    • getDateTime

      public ZonedDateTime getDateTime()
      Description copied from interface: DateProvider
      Static or dynamic date-time.
      Specified by:
      getDateTime in interface DateProvider
      Returns:
      date time.
    • getZoneId

      public ZoneId getZoneId()
      Description copied from interface: DateProvider
      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 DateProvider.getDateTime().
      Specified by:
      getZoneId in interface DateProvider
      Returns:
      zone id
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getToString

      public String getToString()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object