public static final class ObjectCacheSoftImpl.SoftHashMap
extends java.lang.Object
| Constructor and Description |
|---|
ObjectCacheSoftImpl.SoftHashMap(int hardSize)
Construct a new hash map with the specified size
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public ObjectCacheSoftImpl.SoftHashMap(int hardSize)
hardSize - the maximum capacity of this mappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
key - the keyvalue - the valuepublic java.lang.Object get(java.lang.Object key)
key - the keypublic java.lang.Object remove(java.lang.Object key)
key - the keypublic void clear()
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30