|
Protege 3.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protege.util.transaction.CacheImpl<V,R>
public class CacheImpl<V,R>
Constructor Summary | |
---|---|
CacheImpl()
|
Method Summary | |
---|---|
boolean |
isCached(V var)
determines if the variable var is cached in the global cache. |
R |
readCache(V var)
If the variable var is cached then this returns the cached value. |
void |
removeCacheEntry(V var)
Invalidates the global cache for the variable var. |
void |
writeCache(V var,
R result)
Writes the value result to the global cache for the variable var. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheImpl()
Method Detail |
---|
public boolean isCached(V var)
Cache
isCached
in interface Cache<V,R>
var
- a variable
public R readCache(V var)
Cache
readCache
in interface Cache<V,R>
var
- a variable
public void writeCache(V var, R result)
Cache
writeCache
in interface Cache<V,R>
var
- a variableresult
- the cached value for the variable.public void removeCacheEntry(V var)
Cache
removeCacheEntry
in interface Cache<V,R>
var
- a variable
|
Protege 3.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |