Package org.bedework.calfacade.util
Class Granulator
java.lang.Object
org.bedework.calfacade.util.Granulator
Select periods in the Collection of periods which fall within a given
time period. By incrementing that time period we can break up the given
periods into time periods of a given granularity.
Don't make much sense? Try an example:
The given set of periods is a set of events for the week. The granularity is one day - each call gives events appearing in that day - possibly extending into previous and next days.
Another? The periods are a set of freebusy objects defining busy time for one day. The granularity is 30 minutes. The result is a free busy for a day divided into 30 minute periods.
- Author:
- Mike Douglass douglm at bedework.edu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class defines the entities which occupy time and the period of interest and can be passed repeatedly to getPeriodsEvents. -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<?>Select the events in the collection which fall within the period defined by the start and duration.
-
Method Details
-
getPeriodsEvents
Select the events in the collection which fall within the period defined by the start and duration.- Parameters:
pars- GetPeriodsPars object- Returns:
- Collection of EventInfo being one days events or empty for no events.
-