|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openjena.atlas.lib.cache.CacheSync<Key,T>
public class CacheSync<Key,T>
| Constructor Summary | |
|---|---|
CacheSync(Cache<Key,T> cache)
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Key key)
Does the cache contain the key? |
T |
get(Key key)
Get from cache - or return null. |
boolean |
isEmpty()
|
Iterator<Key> |
keys()
Iterate over all keys. |
T |
put(Key key,
T thing)
Insert into from cache and return old value (or null if none) |
boolean |
remove(Key key)
Remove from cache - return true if key referenced an entry |
void |
setDropHandler(ActionKeyValue<Key,T> dropHandler)
Register a callback - called when an object is dropped from the cache (optional operation) |
long |
size()
Current size of cache |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheSync(Cache<Key,T> cache)
| Method Detail |
|---|
public void clear()
clear in interface Cache<Key,T>public boolean containsKey(Key key)
Cache
containsKey in interface Cache<Key,T>public T get(Key key)
Cache
get in interface Cache<Key,T>public boolean isEmpty()
isEmpty in interface Cache<Key,T>public Iterator<Key> keys()
Cache
keys in interface Cache<Key,T>
public T put(Key key,
T thing)
Cache
put in interface Cache<Key,T>public boolean remove(Key key)
Cache
remove in interface Cache<Key,T>public void setDropHandler(ActionKeyValue<Key,T> dropHandler)
Cache
setDropHandler in interface Cache<Key,T>public long size()
Cache
size in interface Cache<Key,T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||