|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
java.util.HashMap
com.j2r.ManagedMap
public class ManagedMap
| Constructor Summary | |
|---|---|
ManagedMap(int size)
Creates a new instance with the specified storage. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears all elements. |
java.lang.Object |
clone()
Creates a shallow copy of this object, preserving the internal structure by copying only references. |
java.lang.Object |
get(int index)
Returns the key at the specified index. |
MapManagerStrategy |
getMapManagerStrategy()
|
java.lang.Object |
getValue(int index)
Returns the value at the specified index. |
int |
indexOf(java.lang.Object key)
Returns the index of the specified key. |
java.util.Iterator |
iterator()
Returns a key iterator. |
int |
lastIndexOf(java.lang.Object key)
Returns the last index of the specified key. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Stores the provided key/value pair. |
void |
putAll(java.util.Map t)
Stores the provided key/value pairs. |
java.lang.Object |
remove(java.lang.Object key)
Removes the element with the specified key. |
void |
setMapManagerStrategy(MapManagerStrategy newMapManagerStrategy)
|
| Methods inherited from class java.util.HashMap |
|---|
containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ManagedMap(int size)
size - The storage to allocate up front.| Method Detail |
|---|
public void clear()
clear in interface java.util.Mapclear in class java.util.HashMappublic java.lang.Object clone()
clone()'d.
clone in class java.util.HashMappublic java.lang.Object get(int index)
public java.lang.Object getValue(int index)
public int indexOf(java.lang.Object key)
public java.util.Iterator iterator()
public int lastIndexOf(java.lang.Object key)
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class java.util.HashMapkey - The key to the provided value.value - The value to store.
null if none.public void putAll(java.util.Map t)
putAll in interface java.util.MapputAll in class java.util.HashMapt - The key/value pairs to store.public java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in class java.util.HashMapkey - The Map key of the object to remove.
key, or
null if none existed.public MapManagerStrategy getMapManagerStrategy()
public void setMapManagerStrategy(MapManagerStrategy newMapManagerStrategy)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||