org.bridj.util
Class ConcurrentCache<K,V>

java.lang.Object
  extended by org.bridj.util.ConcurrentCache<K,V>

public class ConcurrentCache<K,V>
extends Object

Cache that creates its missing values automatically, using the value class' default constructor (override newInstance(Object) to call another constructor)


Constructor Summary
ConcurrentCache(Class<V> valueClass)
           
 
Method Summary
 void clear()
           
 Iterable<Map.Entry<K,V>> entrySet()
           
 V get(K key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcurrentCache

public ConcurrentCache(Class<V> valueClass)
Method Detail

get

public V get(K key)

clear

public void clear()

entrySet

public Iterable<Map.Entry<K,V>> entrySet()


Copyright © 2009-2013. All Rights Reserved.