KEY - The key in the map.VALUE - The value in the map.public class ExpandingConcurrentMap<KEY,VALUE> extends Object implements ConcurrentMap<KEY,VALUE>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExpandingConcurrentMap.MapValueFactory<KEY,VALUE> |
| Constructor and Description |
|---|
ExpandingConcurrentMap(ExpandingConcurrentMap.MapValueFactory<KEY,VALUE> fac)
Create a new ExpandingConcurrentMap.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
alreadyContainsKey(Object k) |
void |
clear() |
boolean |
containsKey(Object k) |
boolean |
containsValue(Object value) |
Set<Map.Entry<KEY,VALUE>> |
entrySet() |
VALUE |
get(Object key) |
boolean |
isEmpty() |
Set<KEY> |
keySet() |
VALUE |
put(KEY key,
VALUE value) |
void |
putAll(Map<? extends KEY,? extends VALUE> m) |
VALUE |
putIfAbsent(KEY key,
VALUE value) |
VALUE |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
VALUE |
replace(KEY key,
VALUE value) |
boolean |
replace(KEY key,
VALUE oldValue,
VALUE newValue) |
int |
size() |
Collection<VALUE> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic ExpandingConcurrentMap(ExpandingConcurrentMap.MapValueFactory<KEY,VALUE> fac)
fac - The object factory responsible for attempting to generate object instances.public boolean alreadyContainsKey(Object k)
public boolean containsKey(Object k)
containsKey in interface Map<KEY,VALUE>public boolean containsValue(Object value)
containsValue in interface Map<KEY,VALUE>public VALUE putIfAbsent(KEY key, VALUE value)
putIfAbsent in interface ConcurrentMap<KEY,VALUE>putIfAbsent in interface Map<KEY,VALUE>Copyright © 2022 The Apache Software Foundation. All rights reserved.