HashMap is a hash based implementation of the Map interface.
HashMap = new Hashmap(); HashMap = new Hashmap(int initial Capacity); ...
| returns | method | description |
|---|---|---|
| void | clear() | remove all mappings |
| Object | get(Object key) | retrieves the value |
| Object | put(Object key, Object value) | adds a key,value pair |
| int | size() | The number of entries |
| Set | keySet() | The set of keys |
| Collection | values() | the values contained |
See http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html for all.