51 |
|
* ((Handler)(it.next()).handle(); |
52 |
|
* } |
53 |
|
* } |
54 |
– |
* </pre> |
55 |
– |
* <p>[<a href="http://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html"> Introduction to this package. </a>] |
54 |
|
* @see CopyOnWriteArrayList |
55 |
< |
**/ |
55 |
> |
* @since 1.5 |
56 |
> |
* @author Doug Lea |
57 |
> |
*/ |
58 |
|
public class CopyOnWriteArraySet<E> extends AbstractSet<E> |
59 |
|
implements Cloneable, java.io.Serializable { |
60 |
|
|
70 |
|
/** |
71 |
|
* Constructs a set containing all of the elements of the specified |
72 |
|
* Collection. |
73 |
+ |
* @param c the collection |
74 |
|
*/ |
75 |
|
public <T extends E> CopyOnWriteArraySet(Collection<T> c) { |
76 |
|
al = new CopyOnWriteArrayList<E>(); |