cast<RK, RV> method
Provides a view of this map of sets as having RK
keys and RV
instances,
if necessary.
If this map is already a IMapOfSets<RK, RV>
, it is returned unchanged.
If this map contains only keys of type RK
and values of type RV
,
all read operations will work correctly.
If any operation exposes a non-RK
key or non-RV
value,
the operation will throw instead.
Entries added to the map must be valid for both a IMapOfSets<K, V>
and a
IMapOfSets<RK, RV>
.
Implementation
IMapOfSets<RK, RV> cast<RK, RV>() {
IMap<RK, ISet<RV>> result = _mapOfSets.cast<RK, ISet<RV>>();
return IMapOfSets._unsafe(result, config);
}