MCPcopy Create free account
hub / github.com/LFYSec/MScan / newMultiMap

Method newMultiMap

src/main/java/pascal/taie/util/collection/Maps.java:91–94  ·  view source on GitHub ↗
(Map<K, Set<V>> map,
                                                    SSupplier<Set<V>> setFactory)

Source from the content-addressed store, hash-verified

89 }
90
91 public static <K, V> MultiMap<K, V> newMultiMap(Map<K, Set<V>> map,
92 SSupplier<Set<V>> setFactory) {
93 return new MapSetMultiMap<>(map, setFactory);
94 }
95
96 public static <K, V> MultiMap<K, V> newMultiMap(SSupplier<Set<V>> setFactory) {
97 return newMultiMap(newMap(), setFactory);

Callers 15

testPutMethod · 0.95
testPutAll1Method · 0.95
testPutAll2Method · 0.95
testRemoveMethod · 0.95
testRemoveAllMethod · 0.95
testGetMethod · 0.95
testContainsMethod · 0.95
testEqualsMethod · 0.95
testEntrySetMethod · 0.95
testValuesMethod · 0.95

Calls 1

newMapMethod · 0.95

Tested by 15

testPutMethod · 0.76
testPutAll1Method · 0.76
testPutAll2Method · 0.76
testRemoveMethod · 0.76
testRemoveAllMethod · 0.76
testGetMethod · 0.76
testContainsMethod · 0.76
testEqualsMethod · 0.76
testEntrySetMethod · 0.76
testValuesMethod · 0.76