Class DateProviderFactory.DynamicFixedDateTimeProvider
java.lang.Object
com.norconex.importer.handler.condition.impl.DateProviderFactory.DynamicFixedDateTimeProvider
- All Implemented Interfaces:
DateProvider
- Enclosing class:
DateProviderFactory
public static class DateProviderFactory.DynamicFixedDateTimeProvider
extends Object
implements DateProvider
Returns a supplier that dynamically generates a date-time, that once
generated, never changes for that same supplier.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicFixedDateTimeProvider(DateCondition.TimeUnit unit, int amount, boolean today, ZoneId zoneId) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancreateDateTime(ZoneId zoneId) booleanStatic 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.inthashCode()toString()
-
Constructor Details
-
DynamicFixedDateTimeProvider
public DynamicFixedDateTimeProvider(DateCondition.TimeUnit unit, int amount, boolean today, ZoneId zoneId)
-
-
Method Details
-
getDateTime
Description copied from interface:DateProviderStatic or dynamic date-time.- Specified by:
getDateTimein interfaceDateProvider- Returns:
- date time.
-
getZoneId
Description copied from interface:DateProviderThe 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 byDateProvider.getDateTime().- Specified by:
getZoneIdin interfaceDateProvider- Returns:
- zone id
-
createDateTime
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-