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

Class Node

lab08/src/hashmap/MyHashMap.java:18–26  ·  view source on GitHub ↗

Protected helper class to store key/value pairs The protected qualifier allows subclass access

Source from the content-addressed store, hash-verified

16 * The protected qualifier allows subclass access
17 */
18 protected class Node {
19 K key;
20 V value;
21
22 Node(K k, V v) {
23 key = k;
24 value = v;
25 }
26 }
27
28 /* Instance Variables */
29 private Collection<Node>[] buckets;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected