Top Fields Methods
net.fortuna.ical4j.model

public Interface RecurrenceSupport<T extends CalendarComponent>

extends PropertyContainer, Prototype<T extends CalendarComponent>
Known Direct Implementers
net.fortuna.ical4j.model.component.VEvent, net.fortuna.ical4j.model.component.VJournal, net.fortuna.ical4j.model.component.VToDo
Imports
net.fortuna.ical4j.model.component.CalendarComponent, net.fortuna.ical4j.model.property.RecurrenceId, java.time.temporal.Temporal, java.util.ArrayList, .List, .Set

Field Summary

Inherited from net.fortuna.ical4j.model.PropertyContainer:
ADD_IF_NOT_PRESENT

Method Summary

Modifier and TypeMethod and Description
public <R extends Temporal> Set<Period<R>>

Returns:

a set of periods
calculateRecurrenceSet
(final Period<? extends Temporal>
a range to calculate recurrences for
period
)

Calculates the recurrence set for this component using the specified period.

public default List<T>
Inherited from net.fortuna.ical4j.model.PropertyContainer:
addaddAllremoveremoveAllremoveIfreplacesetPropertyListwith
Inherited from net.fortuna.ical4j.model.Prototype:
copy

Method Detail

calculateRecurrenceSetback to summary
public <R extends Temporal> Set<Period<R>> calculateRecurrenceSet(final Period<? extends Temporal> period)

Calculates the recurrence set for this component using the specified period. The recurrence set is derived from a combination of the component start date, recurrence rules and dates, and exception rules and dates. Note that component transparency and anniversary-style dates do not affect the resulting intersection.

If an explicit DURATION is not specified, the effective duration of each returned period is derived from the DTSTART and DTEND or DUE properties. If the component has no DURATION, DTEND or DUE, the effective duration is set to PT0S

Parameters
period:Period<? extends Temporal>

a range to calculate recurrences for

Returns:Set<Period<R>>

a set of periods

getOccurrencesback to summary
public default List<T> getOccurrences(Period<Temporal> period)