diff --git a/src/main/java/datastructures/dictionaries/HashTrieMap.java b/src/main/java/datastructures/dictionaries/HashTrieMap.java index 279c61b48a9a3f203da9a9231b231656e5d69424..51a0bd30c9a063d4fe1dc3cb822cab9499a00922 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(); } }