Understand the RecurrenceSet API
mainThe RecurrenceSet interface is the core abstraction for managing sets of occurrences. It represents the result of any combination of RRULEs, RDATEs, EXDATEs, and EXRULEs as specified in RFC 5545.
Because RecurrenceSet extends Iterable, you can use it directly in enhanced for loops or with decorators from the jems2 library to manipulate the set of occurrences (e.g., limiting the number of results or stopping at a specific date).
for (DateTime occurrence : recurrenceSet) {
// do something with occurrence
}