|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.biojava.utils.cache.FixedSizeMap
A cache that only remembers a given number of keys.
| Constructor Summary | |
FixedSizeMap(int maxSize)
|
|
| Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Retrieve the Object associated with the key, or null if either no value has been associated or if the key's value has been cleared by the cache. |
int |
getMaxSize()
|
void |
put(java.lang.Object key,
java.lang.Object value)
Associate a value with a key. |
void |
remove(java.lang.Object key)
Explicitly remove an object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FixedSizeMap(int maxSize)
| Method Detail |
public int getMaxSize()
public void put(java.lang.Object key,
java.lang.Object value)
CacheMap
put in interface CacheMapkey - the key Objectvalue - the Object to associate with the keypublic java.lang.Object get(java.lang.Object key)
CacheMap
get in interface CacheMapkey - the key Object
public void remove(java.lang.Object key)
CacheMap
remove in interface CacheMapkey - the item to remove
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||