public final class FastWeeklyIterator
extends java.lang.Object
SanityFilter, since this method
won't iterate invalid dates and takes care of adding unsynchronized start dates. This class also stops iterating after the right number of instances if a
COUNT part is present, but you still need to add an UntilLimiter if an UNTIL part is present.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
org.dmfs.rfc5545.recur.ByExpander.Scope
The scope of a part.
|
| Modifier and Type | Method and Description |
|---|---|
static FastWeeklyIterator |
getInstance(RecurrenceRule rule,
org.dmfs.rfc5545.calendarmetrics.CalendarMetrics calendarMetrics,
long start)
Get an instance of a
FastWeeklyIterator for the given rule. |
long |
next()
Get the next instance.
|
public static FastWeeklyIterator getInstance(RecurrenceRule rule, org.dmfs.rfc5545.calendarmetrics.CalendarMetrics calendarMetrics, long start)
FastWeeklyIterator for the given rule.rule - The RecurrenceRule to iterate.calendarMetrics - The CalendarMetrics to use.start - The first instance.FastBirthdayIterator instance or null if the rule is not suitable for this kind of optimization.public long next()
If the last instance has been iterated, all subsequent calls
to this method will return Long.MIN_VALUE.
Long.MIN_VALUE if there are no more instances.