BuiltSetMultimap<K, V> class abstract

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.
no setteroverride
isEmpty bool
As SetMultimap.isEmpty.
no setter
isNotEmpty bool
As SetMultimap.isNotEmpty.
no setter
keys Iterable<K>
As SetMultimap.keys, but result is stable; it always returns the same instance.
no setter
length int
As SetMultimap.length.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Iterable<V>
As SetMultimap.values, but result is stable; it always returns the same instance.
no setter

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 nonexistent 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 ==(Object other) bool
Deep equality.
override
operator [](Object? key) BuiltSet<V>?
As SetMultimap, but results are BuiltSets and not mutable.