UnmodifiableCollectiveQueue<E> constructor
UnmodifiableCollectiveQueue<E> (
- Iterable<
E> elements, { - bool unmodifiableElement = true,
- CollectiveQueueProperties<
E> ? properties,
Creates an unmodifiable queue containing the given elements
.
Parameters:
elements
: Initial elements for the queueunmodifiableElement
: If true, elements that are cells will be converted to their unmodifiable versionsproperties
: Optional properties to configure the queue
Implementation
UnmodifiableCollectiveQueue(Iterable<E> elements, {bool unmodifiableElement = true, CollectiveQueueProperties<E>? properties})
: super(properties ?? CollectiveQueueProperties<E>(), unmodifiableElement: unmodifiableElement, elements: elements);