EntityCollection
An observable collection of Entity instances where each entity has a unique id.
See also
Properties
Gets the event that is fired when entities are added or removed from the collection. The generated event is a EntityCollection.CollectionChangedEventCallback.
Gets the array of Entity instances in the collection. This array should not be modified directly.
Functions
Computes the maximum availability of the entities in the collection. If the collection contains a mix of infinitely available data and non-infinite data, it will return the interval pertaining to the non-infinite data only. If all data is infinite, an infinite interval will be returned.
Gets an entity with the specified id or creates it and adds it to the collection if it does not exist.
Removes an entity with the provided id from the collection.
Resumes raising EntityCollection.collectionChanged events immediately when an item is added or removed. Any modifications made while while events were suspended will be triggered as a single event when this function is called. This function is reference counted and can safely be called multiple times as long as there are corresponding calls to EntityCollection.resumeEvents.
Prevents EntityCollection.collectionChanged events from being raised until a corresponding call is made to EntityCollection.resumeEvents, at which point a single event will be raised that covers all suspended operations. This allows for many items to be added and removed efficiently. This function can be safely called multiple times as long as there are corresponding calls to EntityCollection.resumeEvents.