public final class FastBirthdayIterator
extends java.lang.Object
Be sure to add a SanityFilter right after
this to filter invalid dates like Feb 29th in non-leap years and to inject the start date if it's not synchronized with the rule. Also you'll have to add a
CountLimiter or UntilLimiter if needed.
| 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 FastBirthdayIterator |
getInstance(RecurrenceRule rule,
org.dmfs.rfc5545.calendarmetrics.CalendarMetrics calendarMetrics,
long start)
Get an instance of a
FastBirthdayIterator for the given rule. |
long |
next()
Get the next instance.
|
public static FastBirthdayIterator getInstance(RecurrenceRule rule, org.dmfs.rfc5545.calendarmetrics.CalendarMetrics calendarMetrics, long start)
FastBirthdayIterator 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.