|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--HashMap
|
+--com.jdc.util.HashMapList
HashMapList is a HashMap implementation that also may be accessed like
an ArrayList, i.e. in the order items are inserted into the map.
HashMap,
ArrayList,
Serialized Form| Constructor Summary | |
HashMapList()
Constructs a new, empty map with a default capacity and load factor, which is 0.75. |
|
HashMapList(int initialCapacity)
Constructs a new, empty map with the specified initial capacity and default load factor, which is 0.75. |
|
HashMapList(int initialCapacity,
float loadFactor)
Constructs a new, empty map with the specified initial capacity and the specified load factor. |
|
| Method Summary | |
void |
clear()
Removes all mappings from this map. |
Object |
clone()
Returns a shallow copy of this HashMap instance: the keys and values themselves are not cloned. |
Object |
get(int index)
Returns the key element at the specified position in the list. |
Object |
put(Object key,
Object value)
Associates the specified value with the specified key in this map. |
void |
putAll(Map map)
Copies all of the mappings from the specified map to this one. |
Object |
remove(Object key)
Removes the mapping for this key from this map if present. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HashMapList()
public HashMapList(int initialCapacity)
public HashMapList(int initialCapacity,
float loadFactor)
| Method Detail |
public void clear()
public Object clone()
public Object get(int index)
public Object put(Object key,
Object value)
HashMap
previously associated null with the specified key.public void putAll(Map map)
Map. THIS METHOD IS NOT IMPLEMENTED.
public Object remove(Object key)
|
2004.04.29 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||