Class DateProviderFactory.DynamicFloatingDateTimeProvider
java.lang.Object
com.norconex.importer.handler.condition.impl.DateProviderFactory.DynamicFloatingDateTimeProvider
- All Implemented Interfaces:
DateProvider
- Enclosing class:
DateProviderFactory
public static class DateProviderFactory.DynamicFloatingDateTimeProvider
extends Object
implements DateProvider
Returns a supplier that dynamically generates a date-time, that
changes with every invocation.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicFloatingDateTimeProvider(DateCondition.TimeUnit unit, int amount, boolean today, ZoneId zoneId) -
Method Summary
-
Constructor Details
-
DynamicFloatingDateTimeProvider
public DynamicFloatingDateTimeProvider(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
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-