V - public class ConcurrentOpenHashMap<K,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 |
ConcurrentOpenHashMap.Builder<K,V>
Builder of ConcurrentOpenHashMap.
|
| Constructor and Description |
|---|
ConcurrentOpenHashMap()
Deprecated.
|
ConcurrentOpenHashMap(int expectedItems)
Deprecated.
|
ConcurrentOpenHashMap(int expectedItems,
int concurrencyLevel)
Deprecated.
|
ConcurrentOpenHashMap(int expectedItems,
int concurrencyLevel,
float mapFillFactor,
float mapIdleFactor,
boolean autoShrink,
float expandFactor,
float shrinkFactor) |
| Modifier and Type | Method and Description |
|---|---|
long |
capacity() |
void |
clear() |
V |
computeIfAbsent(K key,
Function<K,V> provider) |
boolean |
containsKey(K key) |
void |
forEach(BiConsumer<? super K,? super V> processor) |
V |
get(K key) |
boolean |
isEmpty() |
List<K> |
keys() |
static <K,V> ConcurrentOpenHashMap.Builder<K,V> |
newBuilder() |
V |
put(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
V |
remove(K key) |
boolean |
remove(K key,
Object value) |
void |
removeNullValue(K key) |
long |
size() |
List<V> |
values() |
@Deprecated public ConcurrentOpenHashMap()
@Deprecated public ConcurrentOpenHashMap(int expectedItems)
@Deprecated public ConcurrentOpenHashMap(int expectedItems, int concurrencyLevel)
public ConcurrentOpenHashMap(int expectedItems,
int concurrencyLevel,
float mapFillFactor,
float mapIdleFactor,
boolean autoShrink,
float expandFactor,
float shrinkFactor)
public static <K,V> ConcurrentOpenHashMap.Builder<K,V> newBuilder()
public long size()
public long capacity()
public boolean isEmpty()
public boolean containsKey(K key)
public void removeNullValue(K key)
public void clear()
public void forEach(BiConsumer<? super K,? super V> processor)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.