Module ical4j.core

Interface RecurrenceSupport<T extends CalendarComponent>

All Superinterfaces:
PropertyContainer, PropertyListAccessor, Prototype<Component>
All Known Implementing Classes:
VEvent, VJournal, VToDo

public interface RecurrenceSupport<T extends CalendarComponent> extends PropertyContainer, Prototype<Component>
  • Method Details

    • calculateRecurrenceSet

      <T extends Temporal> Set<Period<T>> calculateRecurrenceSet(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 - a range to calculate recurrences for
      Returns:
      a list of periods
    • getOccurrences

      default List<T> getOccurrences(Period<Temporal> period) throws ParseException, IOException, URISyntaxException
      Throws:
      ParseException
      IOException
      URISyntaxException