public class CopyOnWriteSet<E> extends AbstractSet<E>
| Constructor and Description |
|---|
CopyOnWriteSet() |
CopyOnWriteSet(Collection<E> col) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
equals(Object o) |
int |
hashCode() |
Iterator<E> |
iterator() |
int |
size() |
removeAlladdAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, clear, contains, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic CopyOnWriteSet()
public CopyOnWriteSet(Collection<E> col)
public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public boolean add(E e)
add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>public boolean equals(Object o)
equals in interface Collection<E>equals in interface Set<E>equals in class AbstractSet<E>public int hashCode()
hashCode in interface Collection<E>hashCode in interface Set<E>hashCode in class AbstractSet<E>Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.