|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap
org.apache.openjpa.lib.util.concurrent.NullSafeConcurrentHashMap
@Deprecated public class NullSafeConcurrentHashMap
A subclass of 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
.
Nested Class Summary | |
---|---|
static interface |
NullSafeConcurrentHashMap.KeyFilter
Deprecated. |
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
NullSafeConcurrentHashMap()
Deprecated. |
|
NullSafeConcurrentHashMap(int size,
float load,
int concurrencyLevel)
Deprecated. |
Method Summary | |
---|---|
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. |
Set |
keySet()
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. |
Methods inherited from class java.util.concurrent.ConcurrentHashMap |
---|
clear, isEmpty, putAll, size |
Methods inherited from class java.util.AbstractMap |
---|
clone, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public NullSafeConcurrentHashMap(int size, float load, int concurrencyLevel)
public NullSafeConcurrentHashMap()
Method Detail |
---|
public Map.Entry removeRandom()
public Iterator<Map.Entry> randomEntryIterator()
public Object remove(Object key)
remove
in interface Map
remove
in class ConcurrentHashMap
public boolean remove(Object key, Object value)
remove
in interface ConcurrentMap
remove
in class ConcurrentHashMap
public boolean replace(Object key, Object oldValue, Object newValue)
replace
in interface ConcurrentMap
replace
in class ConcurrentHashMap
public Object replace(Object key, Object value)
replace
in interface ConcurrentMap
replace
in class ConcurrentHashMap
public Object putIfAbsent(Object key, Object value)
putIfAbsent
in interface ConcurrentMap
putIfAbsent
in class ConcurrentHashMap
public Object put(Object key, Object value)
put
in interface Map
put
in class ConcurrentHashMap
public Object get(Object key)
get
in interface Map
get
in class ConcurrentHashMap
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in class ConcurrentHashMap
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in class ConcurrentHashMap
public boolean contains(Object value)
contains
in class ConcurrentHashMap
public Enumeration elements()
elements
in class ConcurrentHashMap
public Set entrySet()
entrySet
in interface Map
entrySet
in class ConcurrentHashMap
public Enumeration keys()
keys
in class ConcurrentHashMap
public Set keySet()
keySet
in interface Map
keySet
in class ConcurrentHashMap
public Collection values()
values
in interface Map
values
in class ConcurrentHashMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |