com.aelitis.azureus.core.util
Class CopyOnWriteSet<T>

java.lang.Object
  extended by com.aelitis.azureus.core.util.CopyOnWriteSet<T>
All Implemented Interfaces:
java.lang.Iterable<T>

public class CopyOnWriteSet<T>
extends java.lang.Object
implements java.lang.Iterable<T>


Constructor Summary
CopyOnWriteSet(boolean identity_hash_set)
           
 
Method Summary
 boolean add(T o)
           
 void clear()
           
 boolean contains(T o)
           
 java.util.Set<T> getSet()
           
 boolean isEmpty()
           
 java.util.Iterator<T> iterator()
           
 boolean remove(T o)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CopyOnWriteSet

public CopyOnWriteSet(boolean identity_hash_set)
Method Detail

add

public boolean add(T o)

remove

public boolean remove(T o)

contains

public boolean contains(T o)

clear

public void clear()

isEmpty

public boolean isEmpty()

size

public int size()

getSet

public java.util.Set<T> getSet()

iterator

public java.util.Iterator<T> iterator()
Specified by:
iterator in interface java.lang.Iterable<T>