Java java.util.concurrent CopyOnWriteArraySet fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent CopyOnWriteArraySet fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent CopyOnWriteArraySet.

The text is from its open source code.

Constructor

CopyOnWriteArraySet()
Creates an empty set.
CopyOnWriteArraySet(Collection c)
Creates a set containing all of the elements of the specified collection.

Method

booleanadd(E e)
Adds the specified element to this set if it is not already present.
booleanaddAll(Collection c)
Adds all of the elements in the specified collection to this set if they're not already present.
voidforEach(Consumer action)
booleanisEmpty()
Returns true if this set contains no elements.
booleanremove(Object o)
Removes the specified element from this set if it is present.
intsize()
Returns the number of elements in this set.