E - The type of the element stored in the setpublic class ConcurrentHashSet<E> extends MapBackedSet<E>
ConcurrentHashMap-backed Set.map| Constructor and Description |
|---|
ConcurrentHashSet()
Creates a new instance of ConcurrentHashSet
|
ConcurrentHashSet(Collection<E> collection)
Creates a new instance of ConcurrentHashSet, initialized with
the content of another collection
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
clear, contains, iterator, remove, sizeequals, hashCode, removeAlladdAll, containsAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic ConcurrentHashSet()
public ConcurrentHashSet(Collection<E> collection)
collection - The collection to inject in this setpublic boolean add(E element)
add in interface Collection<E>add in interface Set<E>add in class MapBackedSet<E>Copyright © 2004–2024 Apache MINA Project. All rights reserved.