Deprecated
For removal in Netty 4.2. Please use ConcurrentHashMap#newKeySet() instead
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(E
element to be added to this set o)Overrides java. Implements java. |
| public void | clear()
Overrides java. Implements java. |
| public boolean | contains(Object
element whose presence in this set is to be tested o)Overrides java. Implements java. true if this set contains the specified element.
|
| public Iterator | iterator()
Implements abstract java. Implements java. |
| public boolean | remove(Object
object to be removed from this set, if present o)Overrides java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| map | back to summary |
|---|---|
| private final ConcurrentMap<E, Boolean> map | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ConcurrentSet | back to summary |
|---|---|
| public ConcurrentSet() Creates a new instance which wraps the specified | |
| add | back to summary |
|---|---|
| public boolean add(E o) Overrides java. Implements java. Doc from java. Adds the specified element to this set if it is not already present
(optional operation). More formally, adds the specified element
The stipulation above does not imply that sets must accept all
elements; sets may refuse to add any particular element, including
| |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this set (optional operation). The set will be empty after this call returns.
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Overrides java. Implements java. Doc from java. Returns | |
| iterator | back to summary |
|---|---|
| public Iterator Implements abstract java. Implements java. Doc from java. Returns an iterator over the elements in this set. The elements are returned in no particular order (unless this set is an instance of some class that provides a guarantee). | |
| remove | back to summary |
|---|---|
| public boolean remove(Object o) Overrides java. Implements java. Doc from java. Removes the specified element from this set if it is present
(optional operation). More formally, removes an element | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this set (its cardinality). If this
set contains more than
| |