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

Method containsKey

lab07/src/ULLMap.java:54–59  ·  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

52 /** Returns true if and only if this dictionary contains KEY as the
53 * key of some key-value pair. */
54 public boolean containsKey(K key) {
55 if (list == null) {
56 return false;
57 }
58 return list.get(key) != null;
59 }
60
61 @Override
62 public Iterator<K> iterator() {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected