V - public class ConcurrentOpenHashSet<V> extends Object
Provides similar methods as a ConcurrentMap<K,V> but since it's an open hash map with linear probing,
no node allocations are required to store the values.
| Constructor and Description |
|---|
ConcurrentOpenHashSet() |
ConcurrentOpenHashSet(int expectedItems) |
ConcurrentOpenHashSet(int expectedItems,
int concurrencyLevel) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(V value) |
long |
capacity() |
void |
clear() |
boolean |
contains(V value) |
void |
forEach(Consumer<? super V> processor) |
boolean |
isEmpty() |
boolean |
remove(V value) |
int |
removeIf(Predicate<V> filter) |
long |
size() |
String |
toString() |
List<V> |
values() |
public ConcurrentOpenHashSet()
public ConcurrentOpenHashSet(int expectedItems)
public ConcurrentOpenHashSet(int expectedItems,
int concurrencyLevel)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.