fabric.common.util
Class LongKeyCache<V>

java.lang.Object
  extended by fabric.common.util.LongKeyCache<V>

public class LongKeyCache<V>
extends java.lang.Object

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

LongKeyCache

public LongKeyCache()
Method Detail

clear

public void clear()

containsKey

public boolean containsKey(long key)

get

public V get(long key)

put

public V put(long key,
             V value)

remove

public V remove(long key)