Skip to content

Commit

Permalink
Refactored frequency enum to allow full decoupling of recurrence tran…
Browse files Browse the repository at this point in the history
…sformations
  • Loading branch information
benfortuna committed Dec 7, 2020
1 parent 583cb9e commit 0a3a4c0
Showing 1 changed file with 21 additions and 0 deletions.
@@ -1,5 +1,26 @@
package net.fortuna.ical4j.transform.recurrence;

/**
* Represents the possible expansion rules used to generate recurrences.
*
* From RFC5545:
*
* <pre>
* 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.
* </pre>
*
* See https://tools.ietf.org/html/rfc5545#section-3.3.10 for more details.
*/
public enum Frequency {
SECONDLY, MINUTELY, HOURLY, DAILY, WEEKLY, MONTHLY, YEARLY
}

0 comments on commit 0a3a4c0

Please sign in to comment.