create<E, I extends Queue<E> > static method
CollectiveQueue<E>
create<E, I extends Queue<E> >({
- Iterable<
E> ? elements, - bool unmodifiableElement = true,
- Cell? bind,
- ContainerType? container,
- CollectiveReceptor<
dynamic, Signal, Signal> receptor = CollectiveReceptor.unchanged, - TestCollective<
dynamic, Collective> test = TestCollective.passed, - MapObject? mapObject,
- Synapses<
Signal, Cell> synapses = Synapses.enabled,
override
Factory constructor to create an unmodifiable queue with configuration options.
Parameters:
elements
: Initial elements for the queueunmodifiableElement
: If true, elements that are cells will be converted to their unmodifiable versionsbind
: Optional cell to bind tocontainer
: Container type configurationreceptor
: Signal receptor configurationtest
: Test rules for the queue- map: Mapping configuration
synapses
: Synapses configuration for cell linking
Implementation
static CollectiveQueue<E> create<E, I extends Queue<E>>({
Iterable<E>? elements,
bool unmodifiableElement = true,
Cell? bind,
ContainerType? container,
CollectiveReceptor receptor = CollectiveReceptor.unchanged,
TestCollective test = TestCollective.passed,
MapObject? mapObject,
Synapses synapses = Synapses.enabled
}) {
return UnmodifiableCollectiveQueue<E>.fromProperties(
CollectiveCellProperties<E,I>(bind: bind, container: container, test: test, receptor: receptor, synapses: synapses),
unmodifiableElement: unmodifiableElement,
elements: elements
);
}