Package org.opfab.cards.model
Class RRule
java.lang.Object
org.opfab.cards.model.RRule
An object representing the recurrence of the card (as defined in the RFC 5545)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddByhourItem(Integer byhourItem) addByminuteItem(Integer byminuteItem) addBymonthdayItem(Integer bymonthdayItem) addBymonthItem(Integer bymonthItem) addBysetposItem(Integer bysetposItem) addByweekdayItem(DayEnum byweekdayItem) bymonthday(List<Integer> bymonthday) durationInMinutes(Integer durationInMinutes) booleanDefines a list of hours of the day for the recurrence (from 0 to 23)Defines a list of minutes within an hour for the recurrence (from 0 to 59)Defines a list of months of the year for the recurrence (from 1 to 12, 1 representing January)Defines the month days to apply the recurrence toArray of integers, positive or negative.Defines a list of days of the week for the recurrencegetCount()Defines the number of occurrences at which to range-bound the recurrenceDuration in minutes of the event minimum: 0getFreq()Frequency of the recurrenceRepresents at which intervals the recurrence rule repeats.getTzid()Time zone identifier (for example 'Europe/Paris', 'Europe/London', ...)getWkst()Defines the day on which the workweek starts.inthashCode()voidvoidsetByminute(List<Integer> byminute) voidsetBymonth(List<Integer> bymonth) voidsetBymonthday(List<Integer> bymonthday) voidsetBysetpos(List<Integer> bysetpos) voidsetByweekday(List<DayEnum> byweekday) voidvoidsetDurationInMinutes(Integer durationInMinutes) voidvoidsetInterval(Integer interval) voidvoidtoString()
-
Constructor Details
-
RRule
public RRule()
-
-
Method Details
-
freq
-
getFreq
Frequency of the recurrence- Returns:
- freq
-
setFreq
-
interval
-
getInterval
Represents at which intervals the recurrence rule repeats. The default value is \"1\", meaning every second for a SECONDLY rule, every minute for a MINUTELY rule etc.- Returns:
- interval
-
setInterval
-
count
-
getCount
Defines the number of occurrences at which to range-bound the recurrence- Returns:
- count
-
setCount
-
wkst
-
getWkst
Defines the day on which the workweek starts. Valid values are MO, TU, WE, TH, FR, SA, and SU.- Returns:
- wkst
-
setWkst
-
byweekday
-
addByweekdayItem
-
getByweekday
Defines a list of days of the week for the recurrence- Returns:
- byweekday
-
setByweekday
-
bymonth
-
addBymonthItem
-
getBymonth
Defines a list of months of the year for the recurrence (from 1 to 12, 1 representing January)- Returns:
- bymonth
-
setBymonth
-
byhour
-
addByhourItem
-
getByhour
Defines a list of hours of the day for the recurrence (from 0 to 23)- Returns:
- byhour
-
setByhour
-
byminute
-
addByminuteItem
-
getByminute
Defines a list of minutes within an hour for the recurrence (from 0 to 59)- Returns:
- byminute
-
setByminute
-
bysetpos
-
addBysetposItem
-
getBysetpos
Array of integers, positive or negative. Each given integer will specify an occurrence number, corresponding to the nth occurrence of the rule inside the frequency period- Returns:
- bysetpos
-
setBysetpos
-
bymonthday
-
addBymonthdayItem
-
getBymonthday
Defines the month days to apply the recurrence to- Returns:
- bymonthday
-
setBymonthday
-
tzid
-
getTzid
Time zone identifier (for example 'Europe/Paris', 'Europe/London', ...)- Returns:
- tzid
-
setTzid
-
durationInMinutes
-
getDurationInMinutes
Duration in minutes of the event minimum: 0- Returns:
- durationInMinutes
-
setDurationInMinutes
-
equals
-
hashCode
public int hashCode() -
toString
-