@Deprecated public class NullSafeConcurrentHashMap extends ConcurrentHashMap
ConcurrentHashMap that allows null keys and values. In exchange, it weakens the contract of
putIfAbsent(java.lang.Object, java.lang.Object) and the other concurrent methods added in #ConcurrentHashMap.| Modifier and Type | Class and Description |
|---|---|
static interface |
NullSafeConcurrentHashMap.KeyFilter
Deprecated.
|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
NullSafeConcurrentHashMap()
Deprecated.
|
NullSafeConcurrentHashMap(int size,
float load,
int concurrencyLevel)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object value)
Deprecated.
|
boolean |
containsKey(Object key)
Deprecated.
|
boolean |
containsValue(Object value)
Deprecated.
|
Enumeration |
elements()
Deprecated.
|
Set |
entrySet()
Deprecated.
|
Object |
get(Object key)
Deprecated.
|
Enumeration |
keys()
Deprecated.
|
Object |
put(Object key,
Object value)
Deprecated.
|
Object |
putIfAbsent(Object key,
Object value)
Deprecated.
|
Iterator<Map.Entry> |
randomEntryIterator()
Deprecated.
The returned data structure should not be shared among multiple
threads.
|
Object |
remove(Object key)
Deprecated.
|
boolean |
remove(Object key,
Object value)
Deprecated.
|
Map.Entry |
removeRandom()
Deprecated.
|
Object |
replace(Object key,
Object value)
Deprecated.
|
boolean |
replace(Object key,
Object oldValue,
Object newValue)
Deprecated.
|
Collection |
values()
Deprecated.
|
clear, isEmpty, keySet, putAll, sizeclone, equals, hashCode, toStringpublic NullSafeConcurrentHashMap(int size,
float load,
int concurrencyLevel)
public NullSafeConcurrentHashMap()
public Map.Entry removeRandom()
public Iterator<Map.Entry> randomEntryIterator()
public Object remove(Object key)
remove in interface Mapremove in class ConcurrentHashMappublic boolean remove(Object key, Object value)
remove in interface ConcurrentMapremove in class ConcurrentHashMappublic boolean replace(Object key, Object oldValue, Object newValue)
replace in interface ConcurrentMapreplace in class ConcurrentHashMappublic Object replace(Object key, Object value)
replace in interface ConcurrentMapreplace in class ConcurrentHashMappublic Object putIfAbsent(Object key, Object value)
putIfAbsent in interface ConcurrentMapputIfAbsent in class ConcurrentHashMappublic Object put(Object key, Object value)
put in interface Mapput in class ConcurrentHashMappublic Object get(Object key)
get in interface Mapget in class ConcurrentHashMappublic boolean containsKey(Object key)
containsKey in interface MapcontainsKey in class ConcurrentHashMappublic boolean containsValue(Object value)
containsValue in interface MapcontainsValue in class ConcurrentHashMappublic boolean contains(Object value)
contains in class ConcurrentHashMappublic Enumeration elements()
elements in class ConcurrentHashMappublic Set entrySet()
entrySet in interface MapentrySet in class ConcurrentHashMappublic Enumeration keys()
keys in class ConcurrentHashMappublic Collection values()
values in interface Mapvalues in class ConcurrentHashMapCopyright © 2006–2015 Apache Software Foundation. All rights reserved.