MCPcopy Create free account
hub / github.com/Berkeley-CS61B/skeleton-sp23 / put

Method put

lab08/src/hashmap/Map61B.java:15–15  ·  view source on GitHub ↗

Associates the specified value with the specified key in this map. If the map already contains the specified key, replaces the key's mapping with the value specified.

(K key, V value)

Source from the content-addressed store, hash-verified

13 * If the map already contains the specified key, replaces the key's mapping
14 * with the value specified. */
15 void put(K key, V value);
16
17 /** Returns the value to which the specified key is mapped, or null if this
18 * map contains no mapping for the key. */

Callers

nothing calls this directly

Implementers 2

ULLMaplab08/src/hashmap/ULLMap.java
ULLMaplab07/src/ULLMap.java

Calls

no outgoing calls

Tested by

no test coverage detected