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

Method get

lab07/src/ULLMap.java:13–22  ·  view source on GitHub ↗

Returns the value corresponding to KEY or null if no such value exists.

(K key)

Source from the content-addressed store, hash-verified

11
12 /** Returns the value corresponding to KEY or null if no such value exists. */
13 public V get(K key) {
14 if (list == null) {
15 return null;
16 }
17 Entry lookup = list.get(key);
18 if (lookup == null) {
19 return null;
20 }
21 return lookup.val;
22 }
23
24 @Override
25 public int size() {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected