HashMap

HashMap is a hash based implementation of the Map interface.

Constructors

HashMap = new Hashmap();
HashMap = new Hashmap(int initial Capacity);
...  

Userful functions

returnsmethoddescription
voidclear() remove all mappings
Objectget(Object key)retrieves the value
Objectput(Object key, Object value)adds a key,value pair
intsize()The number of entries
SetkeySet()The set of keys
Collectionvalues()the values contained



See http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html for all.

 
javahashmap.txt · Last modified: 2009/04/21 09:12 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki