@InterfaceAudience.Private class RefCountingMap<K,V> extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
RefCountingMap.Payload<V> |
Modifier and Type | Field and Description |
---|---|
private ConcurrentHashMap<K,RefCountingMap.Payload<V>> |
map |
Constructor and Description |
---|
RefCountingMap() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
clear() |
(package private) V |
get(K k) |
(package private) Set<K> |
keySet() |
(package private) V |
put(K k,
Supplier<V> supplier) |
(package private) V |
remove(K k)
Decrements the ref count of k, and removes from map if ref count == 0.
|
(package private) int |
size() |
(package private) Collection<V> |
values() |
private ConcurrentHashMap<K,RefCountingMap.Payload<V>> map
RefCountingMap()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.