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, size
equals, hashCode, removeAll
addAll, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, isEmpty, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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–2021 Apache MINA Project. All rights reserved.