public class OccurrenceHelper
extends java.lang.Object
Constructor and Description |
---|
OccurrenceHelper() |
Modifier and Type | Method and Description |
---|---|
static java.util.Optional<VEventOccurrence> |
getNextOccurrence(BmDateTime start,
VEvent event)
Returns the first occurrence of {event} occurring after {start} or
{Optional.Empty} if there is none.
|
static VEventOccurrence |
getOccurrence(ItemValue<VEventSeries> event,
BmDateTime dtstart)
Returns an occurrence of a recurring event that occurs a specific date.
|
static java.util.Optional<VEventOccurrence> |
getOccurrenceByRecurId(ItemValue<VEventSeries> event,
BmDateTime recurid)
Returns an occurrence of a recurring event with a specific recurid.
|
static java.util.List<VEvent> |
list(ItemValue<VEventSeries> event,
BmDateTime dtstart,
BmDateTime dtend)
Returns a list of occurrences of a recurring event.
|
public static java.util.List<VEvent> list(ItemValue<VEventSeries> event, BmDateTime dtstart, BmDateTime dtend)
event
- the recurring eventdtstart
- the start date of the perioddtend
- the end date of the periodVEvent
public static VEventOccurrence getOccurrence(ItemValue<VEventSeries> event, BmDateTime dtstart)
event
- the eventdtstart
- the expected occurrence dateVEvent
if the recurring event occurs at BmDateTime
occurrenceDtstart. Returns null otherwise.public static java.util.Optional<VEventOccurrence> getOccurrenceByRecurId(ItemValue<VEventSeries> event, BmDateTime recurid)
event
- the eventrecurid
- the expected occurrence dateVEvent
if the recurring event occurs at BmDateTime
occurrenceDtstart. Returns null otherwise.public static java.util.Optional<VEventOccurrence> getNextOccurrence(BmDateTime start, VEvent event)
start
- event
- Copyright © 2021. All Rights Reserved.