public class RecurrenceId extends DateOrDateTimeProperty
Records the original value of the DateStart
property if a recurrence
instance has been modified. It is used in conjunction with the Uid
and Sequence
properties to uniquely identify a recurrence instance.
Code sample:
VEvent event = new VEvent(); //date-time value Date datetime = ... RecurrenceId recurrenceId = new RecurrenceId(datetime); event.setRecurrenceId(recurrenceId); //date value Date date = ... RecurrenceId recurrenceId = new RecurrenceId(date, false); event.setRecurrenceId(recurrenceId);
value
parameters
Constructor and Description |
---|
RecurrenceId(Date originalStartDate)
Creates a recurrence ID property.
|
RecurrenceId(Date originalStartDate,
boolean hasTime)
Creates a recurrence ID property.
|
RecurrenceId(ICalDate originalStartDate)
Creates a recurrence ID property.
|
Modifier and Type | Method and Description |
---|---|
Range |
getRange()
Gets the effective range of recurrence instances from the instance
specified by this property.
|
void |
setRange(Range range)
Sets the effective range of recurrence instances from the instance
specified by this property.
|
setValue
getValue, getValue, setValue, validate
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
public RecurrenceId(ICalDate originalStartDate)
originalStartDate
- the original start datepublic RecurrenceId(Date originalStartDate)
originalStartDate
- the original start datepublic RecurrenceId(Date originalStartDate, boolean hasTime)
originalStartDate
- the original start datehasTime
- true to include the time component of the date, false not
topublic Range getRange()
public void setRange(Range range)
range
- the range or null to removeCopyright © 2013-2015 Michael Angstadt. All Rights Reserved.