|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface SimpleHashMap<K,V>
A simplified interface for a map that forms the basis of a hash table implementation. The interface is generic in both the key and the associated value.
| Method Summary | |
|---|---|
V |
get(K key)
Returns the value associated with the specified key. |
int |
getNumberOfKeys()
Provides the number of keys in the map. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
V |
put(K key,
V value)
Associates the specified value with the specified key. |
V |
remove(K key)
Removes the mapping for this key if it is present. |
| Method Detail |
|---|
V get(K key)
key - the key being looked for
boolean isEmpty()
V put(K key,
V value)
key - the key being looked forvalue - the value to associate with this key
if the key is found
V remove(K key)
key - the key being looked for
int getNumberOfKeys()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||