public class ConcurrentHashSet<E> extends AbstractSet<E> implements Set<E>
| Modifier and Type | Field and Description |
|---|---|
protected ConcurrentMap<E,E> |
delegate |
| Constructor and Description |
|---|
ConcurrentHashSet()
Creates a new, empty ConcurrentHashSet.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E o) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
equals(Object obj) |
int |
hashCode() |
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
int |
size() |
String |
toString() |
removeAlladdAll, containsAll, isEmpty, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, containsAll, isEmpty, removeAll, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streamprotected final ConcurrentMap<E,E> delegate
public ConcurrentHashSet()
public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface Set<E>contains in class AbstractCollection<E>public boolean add(E o)
add in interface Collection<E>add in interface Set<E>add in class AbstractCollection<E>public boolean remove(Object o)
remove in interface Collection<E>remove in interface Set<E>remove in class AbstractCollection<E>public void clear()
clear in interface Collection<E>clear in interface Set<E>clear in class AbstractCollection<E>public int hashCode()
hashCode in interface Collection<E>hashCode in interface Set<E>hashCode in class AbstractSet<E>public boolean equals(Object obj)
equals in interface Collection<E>equals in interface Set<E>equals in class AbstractSet<E>public String toString()
toString in class AbstractCollection<E>Copyright © 2021 Fraunhofer SIT. All rights reserved.