V - public class ConcurrentLongHashMap<V> extends Object
Provides similar methods as a ConcurrentMap<long,Object> with 2 differences:
| Modifier and Type | Class and Description |
|---|---|
static class |
ConcurrentLongHashMap.Builder<T>
Builder of ConcurrentLongHashMap.
|
static interface |
ConcurrentLongHashMap.EntryProcessor<V>
Processor for one key-value entry, where the key is
long. |
| Constructor and Description |
|---|
ConcurrentLongHashMap()
Deprecated.
|
ConcurrentLongHashMap(int expectedItems)
Deprecated.
|
ConcurrentLongHashMap(int expectedItems,
int concurrencyLevel)
Deprecated.
|
ConcurrentLongHashMap(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(long key,
LongFunction<V> provider) |
boolean |
containsKey(long key) |
void |
forEach(ConcurrentLongHashMap.EntryProcessor<V> processor) |
V |
get(long key) |
boolean |
isEmpty() |
List<Long> |
keys() |
static <V> ConcurrentLongHashMap.Builder<V> |
newBuilder() |
V |
put(long key,
V value) |
V |
putIfAbsent(long key,
V value) |
V |
remove(long key) |
boolean |
remove(long key,
Object value) |
long |
size() |
List<V> |
values() |
@Deprecated public ConcurrentLongHashMap()
@Deprecated public ConcurrentLongHashMap(int expectedItems)
@Deprecated public ConcurrentLongHashMap(int expectedItems, int concurrencyLevel)
public ConcurrentLongHashMap(int expectedItems,
int concurrencyLevel,
float mapFillFactor,
float mapIdleFactor,
boolean autoShrink,
float expandFactor,
float shrinkFactor)
public static <V> ConcurrentLongHashMap.Builder<V> newBuilder()
public long size()
public long capacity()
public boolean isEmpty()
public V get(long key)
public boolean containsKey(long key)
public V computeIfAbsent(long key, LongFunction<V> provider)
public V remove(long key)
public boolean remove(long key,
Object value)
public void clear()
public void forEach(ConcurrentLongHashMap.EntryProcessor<V> processor)
Copyright © 2017–2022 Apache Software Foundation. All rights reserved.