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 java.lang.Object

Author:
Allan Crooks

Constructor Summary
CopyOnWriteMap()
           
 
Method Summary
 V get(K key)
           
 boolean isEmpty()
           
 java.util.Set<K> keySet()
           
 V put(K key, V val)
           
 void putAll(CopyOnWriteMap<K,V> m)
           
 void putAll(java.util.Map<K,V> m)
           
 V remove(java.lang.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(java.util.Map<K,V> m)

putAll

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

remove

public V remove(java.lang.Object key)

get

public V get(K key)

size

public int size()

isEmpty

public boolean isEmpty()

keySet

public java.util.Set<K> keySet()