MCPcopy Create free account
hub / github.com/PCGen/pcgen / removeMapFor

Method removeMapFor

code/src/java/pcgen/cdom/util/MapKeyMap.java:208–212  ·  view source on GitHub ↗

Removes the List for the given ListKey. Note there is no requirement that the list for the given key be empty before this method is called. Ownership of the returned Map is transferred to the object calling this method. @return The Map which this MapKeyMap previous mapped the given key

(MapKey<K, V> key)

Source from the content-addressed store, hash-verified

206 * @return The Map which this MapKeyMap previous mapped the given key
207 */
208 @SuppressWarnings("unchecked")
209 public <K, V> Map<K, V> removeMapFor(MapKey<K, V> key)
210 {
211 return map.removeAll(key);
212 }
213
214 /**
215 * Returns a Set indicating the Keys of this MapKeyMap. Ownership of the Set

Callers 2

testRemoveMapForMethod · 0.45
cloneMethod · 0.45

Calls 1

removeAllMethod · 0.65

Tested by 1

testRemoveMapForMethod · 0.36