|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SmartCache<K,V>
Defines a cache API. Implementations exist for hard and soft references.
This interface implements the Iterable. The Iterable.iterator()
method returns an iterator over all entries in the cache. The iterator
is mutable.
| Method Summary | |
|---|---|
void |
clear()
|
V |
get(K key)
|
V |
put(K key,
V value)
Places a key/value pair into the queue. |
V |
remove(K key)
Removes a key from the cache. |
int |
size()
|
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Method Detail |
|---|
V put(K key,
V value)
key - Keyvalue - Value
key or nullV get(K key)
V remove(K key)
key - Key
void clear()
int size()
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||