|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.util.ObjectIdentityMap
A simple map-like collection, similar to (but more more limited than) JDK 1.4's IdentityHashMap. It is designed for small collections of objects.
Constructor Summary | |
ObjectIdentityMap()
|
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Returns the object stored for the given key. |
void |
put(java.lang.Object key,
java.lang.Object value)
Adds or updates a key in the bag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectIdentityMap()
Method Detail |
public void put(java.lang.Object key, java.lang.Object value)
key
- the key to store a value under; an existing value with the key is discardedvalue
- the value to storepublic java.lang.Object get(java.lang.Object key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |