public class RecurrenceRule extends RecurrenceProperty
Defines how often a component repeats.
Code sample:
VEvent event = new VEvent(); Recurrence recur = new Recurrence.Builder(Frequency.WEEKLY).interval(2).build(); RecurrenceRule rrule = new RecurrenceRule(recur); event.setRecurrenceRule(rruel);
valueparameters| Constructor and Description |
|---|
RecurrenceRule(Recurrence recur)
Creates a new recurrence rule property.
|
RecurrenceRule(RecurrenceRule original)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
RecurrenceRule |
copy()
Creates a copy of this property object.
|
getDateIterator, getDateIterator, validateequals, getValue, getValue, hashCode, setValue, toStringValues, valueEquals, valueHashCodeaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, toString, validatepublic RecurrenceRule(Recurrence recur)
recur - the recurrence rulepublic RecurrenceRule(RecurrenceRule original)
original - the property to make a copy ofpublic RecurrenceRule copy()
ICalPropertyCreates a copy of this property object.
The default implementation of this method uses reflection to look for a copy constructor. Child classes SHOULD override this method to avoid the performance overhead involved in using reflection.
The child class's copy constructor, if present, MUST invoke the
ICalProperty.ICalProperty(ICalProperty) super constructor to ensure that the
parameters are also copied.
This method MUST be overridden by the child class if the child class does
not have a copy constructor. Otherwise, an
UnsupportedOperationException will be thrown when an attempt is
made to copy the property (such as in the
ICalendar class's copy constructor
).
copy in class ICalPropertyCopyright © 2013-2017 Michael Angstadt. All Rights Reserved.