public class SoftReferenceCache<T,K> extends Object
Constructor and Description |
---|
SoftReferenceCache() |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Cleanup the cache.
|
void |
clear()
Clear the cache
|
boolean |
containsKey(T key)
Checks if the cache contains a specific key
|
K |
get(T key)
Get the value from the Cache
|
void |
put(T key,
K object)
Put a object into the cache
|
void |
remove(T key)
Remove item from cache
|
public void put(T key, K object)
key
- key for this objectobject
- object to store in the cachepublic void remove(T key)
key
- remove item that references this keypublic void clear()
public void cleanUp()
public boolean containsKey(T key)
key
- search for this keytrue
if this cache contains this keyTV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)