|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfabric.common.util.LongKeyCache<V>
public class LongKeyCache<V>
A map with soft references to its values. When a value in the map is garbage collected by the JVM, its corresponding key is removed from the map.
| Nested Class Summary | |
|---|---|
static class |
LongKeyCache.Collector
|
| Constructor Summary | |
|---|---|
LongKeyCache()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(long key)
|
V |
get(long key)
|
V |
put(long key,
V value)
|
V |
remove(long key)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongKeyCache()
| Method Detail |
|---|
public void clear()
public boolean containsKey(long key)
public V get(long key)
public V put(long key,
V value)
public V remove(long key)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||