BuiltListMultimap<K, V> class
abstract
The Built Collection ListMultimap
.
It implements the non-mutating part of the ListMultimap
interface.
Iteration over keys is in the same order in which they were inserted.
Modifications are made via ListMultimapBuilder.
See the
Built Collection library documentation
(#built_collection/built_collection)
for the general properties of Built Collections.
Constructors
- BuiltListMultimap([dynamic multimap = const {}])
-
Instantiates with elements from a Map,
ListMultimap
or BuiltListMultimap.factory -
BuiltListMultimap.build(dynamic updates(ListMultimapBuilder<
K, V> )) -
Creates a ListMultimapBuilder, applies updates to it, and builds.
factory
Properties
- hashCode → int
-
Deep hashCode.
no setteroverride
- isEmpty → bool
-
As
ListMultimap.isEmpty
.no setter - isNotEmpty → bool
-
As
ListMultimap.isNotEmpty
.no setter -
keys
→ Iterable<
K> -
As
ListMultimap.keys
, but result is stable; it always returns the same instance.no setter - length → int
-
As
ListMultimap.length
.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Iterable<
V> -
As
ListMultimap.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
ListMultimap.containsKey
. -
containsValue(
Object? value) → bool -
As
ListMultimap.containsValue
. -
forEach(
void f(K, V)) → void -
As
ListMultimap.forEach
. -
forEachKey(
void f(K, Iterable< V> )) → void -
As
ListMultimap.forEachKey
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rebuild(
dynamic updates(ListMultimapBuilder< K, V> )) → BuiltListMultimap<K, V> - Converts to a ListMultimapBuilder, applies updates to it, and builds.
-
toBuilder(
) → ListMultimapBuilder< K, V> - Converts to a ListMultimapBuilder for modification.
-
toMap(
) → Map< K, BuiltList< 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) → BuiltList< V> -
As
ListMultimap
, but results are BuiltLists and not mutable.