K
- V
- @StorableClass @StoreNotUseStandardSerialization public class PSynchronizedMap<K,V> extends Object implements Map<K,V>, Serializable
Modifier and Type | Field and Description |
---|---|
protected IInstanceFactory |
instanceFactory |
protected Map<K,V> |
map |
protected Object |
mutex |
Constructor and Description |
---|
PSynchronizedMap(IInstanceFactory instanceFactory,
Map<K,V> map) |
PSynchronizedMap(IInstanceFactory instanceFactory,
Map<K,V> map,
Object mutex) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object object) |
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
static PSynchronizedMap |
newInstance(IInstanceFactory instanceFactory,
Map map) |
static PSynchronizedMap |
newInstance(IInstanceFactory instanceFactory,
Map map,
Object mutex) |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> map) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
protected final Object mutex
protected final transient IInstanceFactory instanceFactory
public PSynchronizedMap(IInstanceFactory instanceFactory, Map<K,V> map)
public PSynchronizedMap(IInstanceFactory instanceFactory, Map<K,V> map, Object mutex)
public static PSynchronizedMap newInstance(IInstanceFactory instanceFactory, Map map)
public static PSynchronizedMap newInstance(IInstanceFactory instanceFactory, Map map, Object mutex)
public boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object value)
containsValue
in interface Map<K,V>
public boolean equals(Object object)
public int hashCode()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.