|
Algorithm Development Kit 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IHashtableAccess<K,V>
Abstraction of methods that one expects a Hashtable to perform.
If subclasses are unable to perform the actions as specified in this
interface, they may throw an IllegalStateException to alert
users that they are no longer consistent.
| Method Summary | |
|---|---|
V |
add(K k,
V v)
Associate element v with key k. |
V |
remove(K k)
Remove the entry from the hash table. |
boolean |
search(K k)
Determine if element exists within the hash table. |
int |
size()
Return the number of elements in the hash table. |
| Method Detail |
|---|
int size()
boolean search(K k)
k - key of target item to be searched.
true if element exists within the hash table; false otherwise.V remove(K k)
k - key of target item to be removed.
null otherwise.
V add(K k,
V v)
k - key to be added to the Hash table entriesv - target item to be associated with the key
null if no such element associated in the Hash Table
with the given key; otherwise returns V objects that was previously associated
with that object.
|
Algorithm Development Kit 1.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||