public class RecurringEvent extends Event
Constructor and Description |
---|
RecurringEvent(String title,
long startDate,
long endDate,
String rrule)
Creates a new instance of the
RecurringEvent class for storing information about the recurrence rule of a recurring event. |
RecurringEvent(String title,
long startDate,
String duration,
String rrule)
Creates a new instance of the
RecurringEvent class for storing information about the recurrence rule of a recurring event. |
Modifier and Type | Method and Description |
---|---|
boolean |
byDay(int day)
Used to check if a given day is present in the by day set.
|
int |
byDayModifier(int day)
Gets the corresponding day modifier for the given day.
|
int[] |
byHour()
The collection of hours for the recurrence rule.
|
int[] |
byMinute()
The collection of minutes for the recurrence rule.
|
boolean |
byMonth(int month)
Used to check if a given month is present in the by month set.
|
int[] |
byMonthDay()
The collection of month days for the recurrence rule.
|
int[] |
bySecond()
The collection of seconds for the recurrence rule.
|
int[] |
bySetPos()
Gets the BYSETPOS values for the recurrance.
|
int[] |
byWeekNo()
The collection of week numbers for the recurrence rule.
|
int[] |
byYearDay()
The collection of year days for the recurrence rule.
|
int |
count()
Gets the count used in repeating the event.
|
Frequency |
frequency()
Gets the frequency at which the rule recurs.
|
int |
interval()
Gets the interval in which the recurrence occurs.
|
boolean |
isByDay()
Gets a value determining whether the rule is stated as byday rule.
|
boolean |
isByDayModified()
Gets a value determining whether the BYDAY rule is modified such as in -1MO.
|
boolean |
isByHour()
Gets a value stating whether the rule has defined byHour values.
|
boolean |
isByMinute()
Gets a value stating whether the rule has defined byMinute values.
|
boolean |
isByMonth()
Gets a value determining whether the rule is stated as byMonth rule.
|
boolean |
isByMonthDay()
Gets a value stating whether the rule has defined byMonthDay values.
|
boolean |
isBySecond()
Gets a value stating whether the rule has defined bySecond values.
|
boolean |
isBySetPos()
Gets a value stating whether the rule has defined bySetPos values.
|
boolean |
isByWeekNo()
Gets a value stating whether the rule has defined byWeekNo values.
|
boolean |
isByYearDay()
Gets a value stating whether the rule has defined byYearDay values.
|
boolean |
isModified()
Gets a value determining whether the rule is being modified using additional nth ocurrence rule as in -2MO or in BYSETPOS=-1.
|
long |
repeatUntilDate()
Gets the repeat until date if present.
|
String |
rrule()
Gets the recurrence rule used to build the current event instance tokens.
|
int |
weekStartDay()
Gets the start of the week for this event.
|
getCalendarId, getDetails, getEndDate, getEventColor, getStartDate, getTitle, isAllDay, setAllDay, setCalendarId, setDetails, setEndDate, setEventColor, setStartDate, setTitle
public RecurringEvent(String title, long startDate, String duration, String rrule)
RecurringEvent
class for storing information about the recurrence rule of a recurring event.title
- the title of the event.startDate
- the start date of the event.duration
- duration of the event expressed as the [ISO 8601] basic format for the duration of time.rrule
- the rrule holding the recurrence information.public RecurringEvent(String title, long startDate, long endDate, String rrule)
RecurringEvent
class for storing information about the recurrence rule of a recurring event.title
- the title of the event.startDate
- the start date of the event.endDate
- the end date of the event.rrule
- the rrule holding the recurrence information.public int byDayModifier(int day)
Calendar.SUNDAY
, Calendar.MONDAY
etc. Default value is 0.day
- the day for which to check in the modifiers.public int[] bySecond()
null
.public int[] byMinute()
null
.public int[] byHour()
null
.public int[] byMonthDay()
null
.public int[] byYearDay()
null
.public int[] byWeekNo()
null
.public String rrule()
public boolean byDay(int day)
Calendar.SUNDAY
, Calendar.MONDAY
etc.day
- the day to be checked.true
if the day is present in the set, false
otherwise.public boolean byMonth(int month)
Calendar.JANUARY
, Calendar.FEBRUARY
etc.month
- the month to be checked.true
if the month is present in the set, false
otherwise.public long repeatUntilDate()
public int count()
public int weekStartDay()
Calendar.MONDAY
public int interval()
public boolean isBySecond()
true
if there are defined values, false
otherwise.public boolean isByMinute()
true
if there are defined values, false
otherwise.public boolean isByHour()
true
if there are defined values, false
otherwise.public boolean isByMonthDay()
true
if there are defined values, false
otherwise.public boolean isByYearDay()
true
if there are defined values, false
otherwise.public boolean isByWeekNo()
true
if there are defined values, false
otherwise.public boolean isBySetPos()
true
if there are defined values, false
otherwise.public boolean isByDay()
true
if the rule is by day, false
otherwise.public boolean isByMonth()
true
if the rule is by month, false
otherwise.public boolean isModified()
true
if the rrule is modified, false
otherwise.public boolean isByDayModified()
true
if the BYDAY has been modified, false
otherwise.public Frequency frequency()
public int[] bySetPos()
null