|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcdx.CHashMap
public class CHashMap
We note that the key and value of a map entry must not be null.
| Constructor Summary | |
|---|---|
CHashMap(int initialCapacity)
Constructs a new CHashMap with a specific initial capacity. |
|
| Method Summary | |
|---|---|
java.lang.Object |
get(java.lang.Object key)
Returns the value in this CHashMap associated with the supplied key, or null if no mapping for the key exists in the map. |
java.util.Set |
keySet()
Returns all keys within the hash map as a Set. |
void |
put(java.lang.Object key,
java.lang.Object value)
Puts the supplied value into the Map, stored under the supplied key. |
java.lang.Object |
remove(java.lang.Object key)
Removes an value from the map that is associated with a given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CHashMap(int initialCapacity)
initialCapacity - the initial capacity of this CHashMap| Method Detail |
|---|
public java.lang.Object get(java.lang.Object key)
null if no mapping for the key exists in the map.
key - the key for which to fetch an associated value
public void put(java.lang.Object key,
java.lang.Object value)
key - the key under which the value is storedvalue - the value to be stored in the HashMappublic java.lang.Object remove(java.lang.Object key)
key - the key of the value to be remove from the map
public java.util.Set keySet()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||