|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.labs.minion.util.Cache
public abstract class Cache
| Field Summary | |
|---|---|
protected int |
size
The number of entries to store in the cache. |
| Constructor Summary | |
|---|---|
Cache(int size)
|
|
| Method Summary | |
|---|---|
abstract void |
cache(java.lang.Object key,
java.lang.Object value)
Caches a value under a given key. |
abstract void |
clear()
Clears out the cache. |
abstract java.lang.Object |
get(java.lang.Object key)
Gets the value corresponding to a given key. |
int |
getSize()
Gets the size of the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int size
| Constructor Detail |
|---|
public Cache(int size)
| Method Detail |
|---|
public abstract void cache(java.lang.Object key,
java.lang.Object value)
public abstract java.lang.Object get(java.lang.Object key)
null if the value
is not cached.public abstract void clear()
public int getSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||