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.
| Modifier and Type | Class and Description |
|---|---|
static class |
ConcurrentOpenHashSet.Builder<V>
Builder of ConcurrentOpenHashSet.
|
| Constructor and Description |
|---|
ConcurrentOpenHashSet()
Deprecated.
|
ConcurrentOpenHashSet(int expectedItems)
Deprecated.
|
ConcurrentOpenHashSet(int expectedItems,
int concurrencyLevel)
Deprecated.
|
ConcurrentOpenHashSet(int expectedItems,
int concurrencyLevel,
float mapFillFactor,
float mapIdleFactor,
boolean autoShrink,
float expandFactor,
float shrinkFactor) |
| 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() |
static <V> ConcurrentOpenHashSet.Builder<V> |
newBuilder() |
boolean |
remove(V value) |
int |
removeIf(Predicate<V> filter) |
long |
size() |
String |
toString() |
List<V> |
values() |
@Deprecated public ConcurrentOpenHashSet()
@Deprecated public ConcurrentOpenHashSet(int expectedItems)
@Deprecated public ConcurrentOpenHashSet(int expectedItems, int concurrencyLevel)
public ConcurrentOpenHashSet(int expectedItems,
int concurrencyLevel,
float mapFillFactor,
float mapIdleFactor,
boolean autoShrink,
float expandFactor,
float shrinkFactor)
public static <V> ConcurrentOpenHashSet.Builder<V> newBuilder()
public long size()
public long capacity()
public boolean isEmpty()
public boolean contains(V value)
public boolean add(V value)
public boolean remove(V value)
public void clear()
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.