The key type, must extend PropertyKey
The entity type
Creates a new ImmutableEntityCollection from plugin entities.
Record of plugin URN to entities for that plugin
Returns the number of unique keys in the collection.
The count of unique keys
Flat maps over individual entities, applying the transform function to each entity.
The return type of the mapping function
Array of transformed values
Returns an iterator over the unique keys in the collection.
Iterator yielding unique keys in insertion order
Returns an iterator over the entity arrays for each key in the collection.
Iterator yielding entity arrays in insertion order
Implementation of immutable entity collections that provide convenient iteration methods. Wraps Map<K, E[]> functionality with additional utility methods for working with entities. Tracks which plugin each entity came from for proper attribution.