Example usage for Java java.util.concurrent CopyOnWriteArraySet fields, constructors, methods, implement or subclass
The text is from its open source code.
CopyOnWriteArraySet() Creates an empty set. | |
CopyOnWriteArraySet(Collection extends E> c) Creates a set containing all of the elements of the specified collection. |
boolean | add(E e) Adds the specified element to this set if it is not already present. |
boolean | addAll(Collection extends E> c) Adds all of the elements in the specified collection to this set if they're not already present. |
void | forEach(Consumer super E> action) |
boolean | isEmpty() Returns true if this set contains no elements. |
boolean | remove(Object o) Removes the specified element from this set if it is present. |
int | size() Returns the number of elements in this set. |