All Implemented Interfaces:
RRulePart<FrequencyType>, VChild, VElement

public class Frequency extends RRulePartBase<FrequencyType,Frequency>
FREQUENCY FREQ RFC 5545 iCalendar 3.3.10 p40 The FREQ rule part identifies the type of recurrence rule. This rule part MUST be specified in the recurrence rule. Valid values include SECONDLY, to specify repeating events based on an interval of a second or more; MINUTELY, to specify repeating events based on an interval of a minute or more; HOURLY, to specify repeating events based on an interval of an hour or more; DAILY, to specify repeating events based on an interval of a day or more; WEEKLY, to specify repeating events based on an interval of a week or more; MONTHLY, to specify repeating events based on an interval of a month or more; and YEARLY, to specify repeating events based on an interval of a year or more. Frequency value. Possible values include:
FrequencyType.SECONDLY
FrequencyType.MINUTELY
FrequencyType.HOURLY
FrequencyType.DAILY
FrequencyType.WEEKLY
FrequencyType.MONTHLY
FrequencyType.YEARLY
See Also:
  • Constructor Details

    • Frequency

      public Frequency(FrequencyType frequencyType)
    • Frequency

      public Frequency()
    • Frequency

      public Frequency(Frequency source)
  • Method Details

    • setValue

      void setValue(String frequency)
    • withValue

      public Frequency withValue(String frequency)
    • adjuster

      TemporalAdjuster adjuster(int interval)
      TemporalAdjuster to enable frequency stream in RecurrenceRuleValue.streamRecurrences(Temporal)
    • streamRecurrences

      public Stream<Temporal> streamRecurrences(Temporal start, int interval)
      STREAM Resulting stream of start date/times by applying Frequency temporal adjuster and all, if any, Rules. Starts on startDateTime, which MUST be a valid occurrence date/time, but not necessarily the first date/time (DTSTART) in the sequence. A later startDateTime can be used to more efficiently get to later dates in the stream.
      Parameters:
      start - - starting point of stream (MUST be a valid occurrence date/time)
      Returns:
    • parseContent

      protected List<VElementBase.Message> parseContent(String content)
      Description copied from class: VElementBase
      Parse content line into calendar element. If element contains children VElementBase.parseContent(String) is invoked recursively to parse child elements also
      Specified by:
      parseContent in class VElementBase
      Parameters:
      content - calendar content string to parse
      Returns:
      log of information and error messages
    • parse

      public static Frequency parse(String content)