Skip to content

Commit

Permalink
Added components feature
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jul 9, 2024
1 parent 4018a91 commit 776ccce
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,17 @@ todo.with(CATEGORIES, new Categories("travel"));
| DescriptivePropertyModifiers | `ATTACH`, `CATEGORIES`, `DESCRIPTION`, `SUMMARY` |
| RecurrencePropertyModifiers | `EXDATE`, `RDATE`, `RRULE` |
| RelationshipPropertyModifiers | `ATTENDEE`, `CONTACT`, `ORGANIZER`, `RECURRENCE-ID`, `RELATED-TO`, `URL` |

## Recurrence Support

Some components support the concept of recurrence, which may be defined by the inclusion of `RRULE`,
`RDATE` and/or `EXDATE` properties. Components that support these properties also implement the
`RecurrenceSupport` interface which defines methods for calculating discrete occurrences.

```java
Period period = new Period("20230301/P1M");

List<VEvent> occurrences = event.getOccurrences(period);

Set<Period> recurrenceSet = event.calculateRecurrenceSet(period);
```

0 comments on commit 776ccce

Please sign in to comment.