dmfs / lib-recur

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

fastForward on RecurrenceSet #123

Closed pli2019 closed 10 months ago

pli2019 commented 11 months 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 11 months 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 10 months ago

Thanks for the reply. It works!