TimeIntervalCollection
A non-overlapping collection of TimeInterval instances sorted by start time.
Parameters
An array of intervals to add to the collection.
See also
Types
Properties
Gets an event that is raised whenever the collection of intervals change.
Gets whether or not the start time is included in the collection.
Gets whether or not the stop time is included in the collection.
Gets the start time of the collection.
Gets the stop time of the collection.
Functions
Adds an interval to the collection, merging intervals that contain the same data and splitting intervals of different data as needed in order to maintain a non-overlapping collection. The data in the new interval takes precedence over any existing intervals in the collection.
Checks if the specified date is inside this collection.
Compares this instance against the provided instance componentwise and returns true
if they are equal, false
otherwise.
Finds and returns the data for the interval that contains the specified date.
Returns the first interval in the collection that matches the specified parameters. All parameters are optional and undefined
parameters are treated as a don't care condition.
Finds and returns the interval that contains the specified date.
Gets the interval at the specified index.
Finds and returns the index of the interval in the collection that contains the specified date.
Creates a new instance that is the intersection of this collection and the provided collection.
Removes the specified interval from this interval collection, creating a hole over the specified interval. The data property of the input interval is ignored.