|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.cache.FixedSizeMap
public class FixedSizeMap
A cache that only remembers a given number of keys.
| Constructor Summary | |
|---|---|
FixedSizeMap(int maxSize)
|
|
| Method Summary | |
|---|---|
Object |
get(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(Object key,
Object value)
Associate a value with a key. |
void |
remove(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(Object key,
Object value)
CacheMap
put in interface CacheMapkey - the key Objectvalue - the Object to associate with the keypublic Object get(Object key)
CacheMap
get in interface CacheMapkey - the key Object
public void remove(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 | |||||||||