- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMyHashTable_.java
More file actions
Latest commit
21 lines (15 loc) · 603 Bytes
/
Copy pathMyHashTable_.java
File metadata and controls
21 lines (15 loc) · 603 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
classNotFoundExceptionextendsException {}
publicinterfaceMyHashTable_<K, T> {
// Insert new object with given key
publicintinsert(Kkey, Tobj);
// Update object for given key
publicintupdate(Kkey, Tobj);
// Delete object for given key
publicintdelete(Kkey);
// Does an object with this key exist?
publicbooleancontains(Kkey);
// Return the object with given key
publicTget(Kkey) throwsNotFoundException;
// ”Address” of object with given key (explained below)
publicStringaddress(Kkey) throwsNotFoundException;
}