Constructor and Description |
---|
CopyOnWriteSet() |
CopyOnWriteSet(Collection<? extends E> col) |
CopyOnWriteSet(CopyOnWriteSet<? extends E> col) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
clear() |
CopyOnWriteSet<E> |
clone()
Clone this object
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
static <T> T[] |
copyOf(T[] original,
int newLength) |
static <T,U> T[] |
copyOf(U[] original,
int newLength,
Class<? extends T[]> newType) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public CopyOnWriteSet()
public CopyOnWriteSet(CopyOnWriteSet<? extends E> col)
public CopyOnWriteSet(Collection<? extends E> col)
public int size()
public boolean add(E e)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean equals(Object o)
public int hashCode()
public CopyOnWriteSet<E> clone()
public boolean isEmpty()
public boolean contains(Object o)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
containsAll
in interface Set<E>
public boolean addAll(Collection<? extends E> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
public static <T> T[] copyOf(T[] original, int newLength)
public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.