public class ComponentGroup<C extends Component> extends Object
Calendar calendar = ... String uidString = ... ComponentGroupCreated by fortuna on 20/07/2017.group = new ComponentGroup( calendar.getComponents(Component.VEVENT), new Uid(uidString)); return group.getLatestRevision();
Constructor and Description |
---|
ComponentGroup(List<C> components,
Uid uid) |
ComponentGroup(List<C> components,
Uid uid,
RecurrenceId recurrenceId) |
Modifier and Type | Method and Description |
---|---|
<T extends Temporal> |
calculateRecurrenceSet(Period<T> period)
Calculate all recurring periods for the specified date range.
|
C |
getLatestRevision()
Returns the latest component revision based on ascending sequence number and modified date.
|
List<C> |
getRevisions()
Apply filter to all components to create a subset containing components
matching the specified UID.
|
public ComponentGroup(List<C> components, Uid uid, RecurrenceId recurrenceId)
public List<C> getRevisions()
public C getLatestRevision()
public <T extends Temporal> List<Period<T>> calculateRecurrenceSet(Period<T> period)
period
- Component.calculateRecurrenceSet(Period)