public class ConcurrentHashSet<K> extends Object implements Set<K>
Constructor and Description |
---|
ConcurrentHashSet() |
ConcurrentHashSet(int initialCapacity) |
ConcurrentHashSet(Set<K> set) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(K o) |
boolean |
addAll(Collection<? extends K> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<K> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
equals, hashCode, spliterator
parallelStream, removeIf, stream
public ConcurrentHashSet()
public ConcurrentHashSet(int initialCapacity)
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] a)
public boolean add(K o)
public boolean remove(Object o)
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<K>
containsAll
in interface Set<K>
public boolean addAll(Collection<? extends K> c)
public boolean retainAll(Collection<?> c)
public boolean removeAll(Collection<?> c)
public void clear()
Copyright © 2024. All rights reserved.