dmfs / lib-recur

A recurrence processor for Java
Apache License 2.0
199 stars 47 forks source link

fastForward on RecurrenceSet #123

Closed pli2019 closed 1 year ago

pli2019 commented 1 year ago

Hi,

I am using RecurrenceSet and it does not support fastForward().

RecurrenceSet recurSet = new RecurrenceSet(firstInstance, new RuleInstances(rule), excetpitonList);

Is there an alternate way to use fastForward on a recurrence event with exceptions? I found org.dmfs.rfc5545.recurrenceset.RecurrenceSetIterator but it is deprecated.

Thanks.

dmfs commented 1 year ago

the way this is supposed to work now is by decorating the InstanceIterable like this

RecurrenceSet recurSet = new RecurrenceSet(
    firstInstance,
    new FastForwarded(fastForwardTo, new RuleInstances(rule)),
    excetpitonList);
pli2019 commented 1 year ago

Thanks for the reply. It works!