com.aelitis.azureus.core.util
Class CopyOnWriteMap<K,V>

java.lang.Object
  extended by com.aelitis.azureus.core.util.CopyOnWriteMap<K,V>

public class CopyOnWriteMap<K,V>
extends Object

Author:
Allan Crooks

Constructor Summary
CopyOnWriteMap()
           
 
Method Summary
 V get(K key)
           
 boolean isEmpty()
           
 V put(K key, V val)
           
 void putAll(CopyOnWriteMap<K,V> m)
           
 void putAll(Map<K,V> m)
           
 V remove(Object key)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyOnWriteMap

public CopyOnWriteMap()
Method Detail

put

public V put(K key,
             V val)

putAll

public void putAll(Map<K,V> m)

putAll

public void putAll(CopyOnWriteMap<K,V> m)

remove

public V remove(Object key)

get

public V get(K key)

size

public int size()

isEmpty

public boolean isEmpty()