|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ojb.broker.cache.ObjectCacheSoftImpl.SoftHashMap
public static final class ObjectCacheSoftImpl.SoftHashMap
Kind of map using SoftReference to store values
Constructor Summary | |
---|---|
ObjectCacheSoftImpl.SoftHashMap(int hardSize)
Construct a new hash map with the specified size |
Method Summary | |
---|---|
void |
clear()
Clear the map |
java.lang.Object |
get(java.lang.Object key)
Retrieve the value associated to a given key |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Put the key, value pair into the HashMap using a SoftValue object |
java.lang.Object |
remove(java.lang.Object key)
Remove the entry for this key |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectCacheSoftImpl.SoftHashMap(int hardSize)
hardSize
- the maximum capacity of this mapMethod Detail |
---|
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
key
- the keyvalue
- the value
public java.lang.Object get(java.lang.Object key)
key
- the key
public java.lang.Object remove(java.lang.Object key)
key
- the key
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |