Calendar calendar = ...
String uidString = ...
ComponentGroup group = new ComponentGroup(
calendar.getComponents(Component.VEVENT),
new Uid(uidString));
return group.getLatestRevision();
Created by fortuna on 20/07/2017.
| Modifier and Type | Field and Description |
|---|---|
| private ComponentList | |
| private final Predicate |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ComponentGroup(Uid
the UID to filter on uid, RecurrenceId<?> recurrenceId)Construct a component group filtered on a specific recurrence of a |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public <T extends ComponentContainer | add(C
the subcomponent to add component)Overrides default net. Add a subcomponent to this component. |
| public <T extends Temporal> List | calculateRecurrenceSet(final Period<? extends Temporal> period)
Calculate all recurring periods for the specified date range. |
| public ComponentList | |
| public C | getLatestRevision()
Returns the latest component revision based on ascending sequence number and modified date. |
| public List | getRevisions()
Apply filter to all components to create a subset containing components matching the specified UID. |
| public <T extends ComponentContainer | replace(C
the subcomponent to add component)Overrides default net. Add a subcomponent to this component whilst removing all other subcomponents with the same component name. |
| public void | setComponentList(ComponentList<C> components)
Implements net.
|
| componentList | back to summary |
|---|---|
| private ComponentList<C> componentList | |
| componentPredicate | back to summary |
|---|---|
| private final Predicate<C> componentPredicate | |
| ComponentGroup | back to summary |
|---|---|
| public ComponentGroup(Uid uid) Construct a component group filtered on
| |
| ComponentGroup | back to summary |
|---|---|
| public ComponentGroup(Uid uid, RecurrenceId<?> recurrenceId) Construct a component group filtered on a specific recurrence of a
| |
| ComponentGroup | back to summary |
|---|---|
| public ComponentGroup(List<C> components, Uid uid) | |
| ComponentGroup | back to summary |
|---|---|
| public ComponentGroup(ComponentList<C> components, Uid uid) | |
| ComponentGroup | back to summary |
|---|---|
| public ComponentGroup(List<C> components, Uid uid, RecurrenceId<?> recurrenceId) | |
| ComponentGroup | back to summary |
|---|---|
| public ComponentGroup(ComponentList<C> components, Uid uid, RecurrenceId<?> recurrenceId) | |
| add | back to summary |
|---|---|
| public <T extends ComponentContainer Overrides default net. Doc from net. Add a subcomponent to this component.
| |
| calculateRecurrenceSet | back to summary |
|---|---|
| public <T extends Temporal> List Calculate all recurring periods for the specified date range. This method will take all revisions into account when generating the set. Component revisions with a RECURRENCE_ID property are processed last, as they override instances in the default recurrence set. | |
| getComponentList | back to summary |
|---|---|
| public ComponentList Implements net.
| |
| getLatestRevision | back to summary |
|---|---|
| public C getLatestRevision() Returns the latest component revision based on ascending sequence number and modified date. | |
| getRevisions | back to summary |
|---|---|
| public List Apply filter to all components to create a subset containing components matching the specified UID. | |
| replace | back to summary |
|---|---|
| public <T extends ComponentContainer Overrides default net. Doc from net. Add a subcomponent to this component whilst removing all other subcomponents with the same component name.
| |
| setComponentList | back to summary |
|---|---|
| public void setComponentList(ComponentList<C> components) Implements net.
| |