Skip to content
Snippets Groups Projects
Commit 33980eec authored by Winston Jodjana's avatar Winston Jodjana
Browse files

Update HashTrieMap.java to fit p1-public

parent cfa66f82
No related branches found
No related tags found
No related merge requests found
......@@ -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();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment