Fixed bugs to Dictionary Classes
This commit is contained in:
@@ -62,6 +62,18 @@ public class LogFile<K,V> implements Dictionary<K,V> {
|
||||
return t;
|
||||
}
|
||||
|
||||
protected Entry<K, V> insert(Entry<K,V> in_e) throws InvalidKeyException {
|
||||
//in_e not used because used internally
|
||||
LocationAwareEntry<K,V> t = (LocationAwareEntry<K,V>)in_e;
|
||||
list.addLast(t);
|
||||
t.setLocation(list.last());
|
||||
return t;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public Entry<K, V> remove(Entry<K, V> e) throws InvalidEntryException {
|
||||
LocationAwareEntry<K,V> t = checkEntry(e);
|
||||
|
||||
Reference in New Issue
Block a user