|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectchrriis.uihierarchy.compatibility.HashMap
The HashMap compatible version.
| Constructor Summary | |
HashMap()
Constructs an empty HashMap with the default initial capacity (16) and the default load factor (0.75). |
|
HashMap(int initialCapacity)
Constructs an empty HashMap with the specified initial capacity and the default load factor (0.75). |
|
| Method Summary | |
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified key. |
Object |
get(Object key)
Returns the value to which this map maps the specified key. |
Set |
keySet()
Returns a set view of the keys contained in this map. |
Object |
put(Object key,
Object value)
Associates the specified value with the specified key in this map (optional operation). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HashMap()
public HashMap(int initialCapacity)
initialCapacity - The initial capacity.| Method Detail |
public boolean containsKey(Object key)
containsKey in interface Mapkey - The key.
public Object get(Object key)
get in interface Mapkey - The key.
public Object put(Object key,
Object value)
put in interface Mapkey - The key.value - The value.
public Set keySet()
keySet in interface Map
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||