From 33980eec9b26fe91a2fd39fca9e6c437eb74692c Mon Sep 17 00:00:00 2001 From: Winston Jodjana <winj@cs.washington.edu> Date: Wed, 20 Oct 2021 12:18:45 -0700 Subject: [PATCH] Update HashTrieMap.java to fit p1-public --- .../java/datastructures/dictionaries/HashTrieMap.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/datastructures/dictionaries/HashTrieMap.java b/src/main/java/datastructures/dictionaries/HashTrieMap.java index 279c61b..51a0bd3 100644 --- a/src/main/java/datastructures/dictionaries/HashTrieMap.java +++ b/src/main/java/datastructures/dictionaries/HashTrieMap.java @@ -21,7 +21,7 @@ public class HashTrieMap<A extends Comparable<A>, K extends BString<A>, V> exten } public HashTrieNode(V value) { - this.pointers = new HashMap<>(); + this.pointers = new HashMap<A, HashTrieNode>(); this.value = value; } @@ -31,10 +31,9 @@ public class HashTrieMap<A extends Comparable<A>, K extends BString<A>, V> exten } } - public HashTrieMap(Class<K> KClass) { super(KClass); - throw new NotYetImplementedException(); + this.root = new HashTrieNode(); } @Override @@ -54,11 +53,11 @@ public class HashTrieMap<A extends Comparable<A>, K extends BString<A>, V> exten @Override public void delete(K key) { - throw new UnsupportedOperationException(); + throw new NotYetImplementedException(); } @Override public void clear() { - throw new UnsupportedOperationException(); + throw new NotYetImplementedException(); } } -- GitLab