BuiltSetMultimap<K, V> class

The Built Collection SetMultimap.

It implements the non-mutating part of the SetMultimap interface. Iteration over keys is in the same order in which they were inserted. Modifications are made via SetMultimapBuilder.

See the Built Collection library documentation for the general properties of Built Collections.

Constructors

BuiltSetMultimap([dynamic multimap = const {}])
Instantiates with elements from a Map, SetMultimap or BuiltSetMultimap. [...]
factory
BuiltSetMultimap.build(dynamic updates(SetMultimapBuilder<K, V>))
Creates a SetMultimapBuilder, applies updates to it, and builds.
factory

Properties

hashCode int
Deep hashCode. [...]
read-only, override
isEmpty bool
As SetMultimap.isEmpty.
read-only
isNotEmpty bool
As SetMultimap.isNotEmpty.
read-only
keys Iterable<K>
As SetMultimap.keys, but result is stable; it always returns the same instance.
read-only
length int
As SetMultimap.length.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
values Iterable<V>
As SetMultimap.values, but result is stable; it always returns the same instance.
read-only

Methods

asMap() Map<K, Iterable<V>>
Returns as an immutable map. [...]
containsKey(Object key) bool
As SetMultimap.containsKey.
containsValue(Object value) bool
As SetMultimap.containsValue.
forEach(void f(K, V)) → void
As SetMultimap.forEach.
forEachKey(void f(K, Iterable<V>)) → void
As SetMultimap.forEachKey.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
rebuild(dynamic updates(SetMultimapBuilder<K, V>)) BuiltSetMultimap<K, V>
Converts to a SetMultimapBuilder, applies updates to it, and builds.
toBuilder() SetMultimapBuilder<K, V>
Converts to a SetMultimapBuilder for modification. [...]
toMap() Map<K, BuiltSet<V>>
Converts to a Map. [...]
toString() String
A string representation of this object. [...]
override

Operators

operator ==(dynamic other) bool
Deep equality. [...]
override
operator [](Object key) BuiltSet<V>
As SetMultimap, but results are BuiltSets and not mutable.