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

Method containsKey

lab08/src/hashmap/ULLMap.java:62–67  ·  view source on GitHub ↗

Returns true if and only if this dictionary contains KEY as the key of some key-value pair.

(K key)

Source from the content-addressed store, hash-verified

60 * key of some key-value pair.
61 */
62 public boolean containsKey(K key) {
63 if (list == null) {
64 return false;
65 }
66 return list.get(key) != null;
67 }
68
69 @Override
70 public Iterator<K> iterator() {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected