associateByUid

fun associateByUid(calendar: Calendar, componentName: String): Map<String?, AssociatedComponents<T>>

Splits iCalendar components by UID and classifies them as

  • main events (which do not have a RECURRENCE-ID) or

  • exceptions (which do have a RECURRENCE-ID).

When there are multiple components with the same UID and RECURRENCE-ID, but different SEQUENCE, this method keeps only the ones with the highest SEQUENCE.

Return

A map of UID to AssociatedComponents

Parameters

calendar

The calendar to split

componentName

The name of the component to split (e.g. "VEVENT")