|
||||||||||
| 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 Mapremove in class ConcurrentHashMap
public boolean remove(Object key,
Object value)
remove in interface ConcurrentMapremove in class ConcurrentHashMap
public boolean replace(Object key,
Object oldValue,
Object newValue)
replace in interface ConcurrentMapreplace in class ConcurrentHashMap
public Object replace(Object key,
Object value)
replace in interface ConcurrentMapreplace in class ConcurrentHashMap
public Object putIfAbsent(Object key,
Object value)
putIfAbsent in interface ConcurrentMapputIfAbsent in class ConcurrentHashMap
public 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 Set keySet()
keySet in interface MapkeySet in class ConcurrentHashMappublic Collection values()
values in interface Mapvalues in class ConcurrentHashMap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||