wt.fc.collections
Class SynchronizedCollections.SynchronizedKeyedMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended bywt.fc.collections.SynchronizedCollections.SynchronizedKeyedMap
All Implemented Interfaces:
Map, WTKeyedMap
Direct Known Subclasses:
SynchronizedCollections.SynchronizedValuedMap
Enclosing class:
SynchronizedCollections

static class SynchronizedCollections.SynchronizedKeyedMap
extends AbstractMap
implements WTKeyedMap


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractMap
 
Nested classes inherited from class wt.fc.collections.WTKeyedMap
WTKeyedMap.WTEntry
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
(package private)  Object lock
           
(package private)  WTKeyedMap m
           
(package private)  Set synchronizedEntrySet
           
(package private)  WTSet synchronizedKeySet
           
(package private)  Collection synchronizedValues
           
 
Fields inherited from class java.util.AbstractMap
 
Fields inherited from interface wt.fc.collections.WTKeyedMap
DEFLATED_ON_SERIALIZATION
 
Constructor Summary
(package private) SynchronizedCollections.SynchronizedKeyedMap(WTKeyedMap m)
           
(package private) SynchronizedCollections.SynchronizedKeyedMap(WTKeyedMap m, Object lock)
           
 
Method Summary
 void clear()
          

Supported API: true
 Object connect(Persistable persistable, Object value, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(Persistable persistable, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(Persistable persistable, WTKeyedMap source, boolean put_if_not_present)
          Adds the mapping for the given key to this map from the source map.
 Object connect(QueryKey queryKey, Object value, WTKeyedMap source)
          Connects the given key with the key in source.
 Object connect(QueryKey queryKey, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(QueryKey queryKey, WTKeyedMap source, boolean put_if_not_present)
          Connects the given key with the key in source.
 Object connect(WTReference wTReference, Object value, WTKeyedMap source)
          Connects the given key with the key in source.
 Object connect(WTReference wTReference, WTKeyedMap source)
          Adds the mapping for the given key to this map from the source map.
 Object connect(WTReference wTReference, WTKeyedMap source, boolean put_if_not_present)
          Adds the mapping for the given key to this map from the source map.
 void connectAll(WTKeyedMap source)
          Adds the mappings from the source map to this map.
 void connectAll(WTKeyedMap source, boolean put_if_not_present)
          Adds the mappings from the source map to this map.
 boolean containsKey(Object key)
          

Supported API: true
 boolean containsKey(Persistable persistable)
          

Supported API: true
 boolean containsKey(QueryKey queryKey)
          

Supported API: true
 boolean containsKey(WTReference wTReference)
          

Supported API: true
 boolean containsValue(Object value)
          

Supported API: true
 Set entrySet()
          

Supported API: true
 boolean equals(Object o)
          

Supported API: true
 Object get(Object key)
          

Supported API: true
 Object get(Persistable persistable)
          

Supported API: true
 Object get(QueryKey queryKey)
          

Supported API: true
 Object get(WTReference wTReference)
          

Supported API: true
 int getKeyMask()
          

Supported API: true
 int hashCode()
          

Supported API: true
 boolean isDeflatedOnSerialization()
          Gets the value of the attribute: DEFLATED_ON_SERIALIZATION.
 boolean isEmpty()
          

Supported API: true
 boolean isEnabled(int param)
          

Supported API: true
 Set keySet()
          

Supported API: true
 Object put(Object key, Object value)
          

Supported API: true
 Object put(Persistable persistable, Object obj)
          

Supported API: true
 Object put(QueryKey queryKey, Object obj)
          

Supported API: true
 Object put(WTReference wTReference, Object obj)
          

Supported API: true
 void putAll(Map t)
          

Supported API: true
 Object remove(Object key)
          

Supported API: true
 Object remove(Persistable persistable)
          

Supported API: true
 Object remove(QueryKey queryKey)
          

Supported API: true
 Object remove(WTReference wTReference)
          

Supported API: true
 void setDeflatedOnSerialization(boolean param)
          Sets the value of the attribute: DEFLATED_ON_SERIALIZATION.
 int size()
          

Supported API: true
 String toString()
           
 Collection values()
          

Supported API: true
 WTSet wtKeySet()
          

Supported API: true
 
Methods inherited from class java.util.AbstractMap
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m

WTKeyedMap m

lock

Object lock

synchronizedKeySet

transient WTSet synchronizedKeySet

synchronizedEntrySet

transient Set synchronizedEntrySet

synchronizedValues

transient Collection synchronizedValues
Constructor Detail

SynchronizedCollections.SynchronizedKeyedMap

SynchronizedCollections.SynchronizedKeyedMap(WTKeyedMap m)

SynchronizedCollections.SynchronizedKeyedMap

SynchronizedCollections.SynchronizedKeyedMap(WTKeyedMap m,
                                             Object lock)
Method Detail

clear

public void clear()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
clear in interface WTKeyedMap

connect

public Object connect(Persistable persistable,
                      WTKeyedMap source)
Description copied from interface: WTKeyedMap
Adds the mapping for the given key to this map from the source map. If the key does not exist in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
persistable -
source -
Returns:
The old value for key in this map, if any
See Also:
WTKeyedMap.connect(Persistable,WTKeyedMap,boolean)

connect

public Object connect(QueryKey queryKey,
                      WTKeyedMap source)
Description copied from interface: WTKeyedMap
Adds the mapping for the given key to this map from the source map. If the key does not exists in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
queryKey -
source -
Returns:
The old value for key in this map, if any
See Also:
WTKeyedMap.connect(Persistable,WTKeyedMap,boolean)

connect

public Object connect(WTReference wTReference,
                      WTKeyedMap source)
Description copied from interface: WTKeyedMap
Adds the mapping for the given key to this map from the source map. If the key does not exists in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connect in interface WTKeyedMap
Parameters:
wTReference -
source -
Returns:
The old value for key in this map, if any
See Also:
WTKeyedMap.connect(WTReference,WTKeyedMap,boolean)

connect

public Object connect(Persistable persistable,
                      WTKeyedMap source,
                      boolean put_if_not_present)
Description copied from interface: WTKeyedMap
Adds the mapping for the given key to this map from the source map. If put_if_not_present is true, then if the key does not exist in source, it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: true

Specified by:
connect in interface WTKeyedMap
Parameters:
persistable -
source -
put_if_not_present -
Returns:
The old value for key in this map, if any

connect

public Object connect(QueryKey queryKey,
                      WTKeyedMap source,
                      boolean put_if_not_present)
Description copied from interface: WTKeyedMap
Connects the given key with the key in source. If put_if_not_present is true, then if the key does not exist in source, it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: true

Specified by:
connect in interface WTKeyedMap
Parameters:
queryKey -
source -
put_if_not_present -
Returns:
The old value for key in this map, if any

connect

public Object connect(WTReference wTReference,
                      WTKeyedMap source,
                      boolean put_if_not_present)
Description copied from interface: WTKeyedMap
Adds the mapping for the given key to this map from the source map. If put_if_not_present is true, then if the key does not exist in source, it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: true

Specified by:
connect in interface WTKeyedMap
Parameters:
wTReference -
source -
put_if_not_present -
Returns:
The old value for key in this map, if any

connect

public Object connect(Persistable persistable,
                      Object value,
                      WTKeyedMap source)
Description copied from interface: WTKeyedMap
Adds the mapping for the given key to this map from the source map. If the key does not exist in source, then it is mapped to null. Otherwise, when the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa.

Supported API: true

Specified by:
connect in interface WTKeyedMap
Parameters:
persistable -
value -
source -
Returns:
The old value for key in this map, if any

connect

public Object connect(QueryKey queryKey,
                      Object value,
                      WTKeyedMap source)
Description copied from interface: WTKeyedMap
Connects the given key with the key in source. When the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa..

Supported API: true

Specified by:
connect in interface WTKeyedMap
Parameters:
queryKey -
value -
source -
Returns:
The old value for key in this map, if any

connect

public Object connect(WTReference wTReference,
                      Object value,
                      WTKeyedMap source)
Description copied from interface: WTKeyedMap
Connects the given key with the key in source. When the key is inflated or refreshed in the source, it is also inflated or refreshed in this map, and vice versa..

Supported API: true

Specified by:
connect in interface WTKeyedMap
Parameters:
wTReference -
value -
source -
Returns:
The old value for key in this map, if any

connectAll

public void connectAll(WTKeyedMap source)
Description copied from interface: WTKeyedMap
Adds the mappings from the source map to this map. When the keys are inflated or refreshed in the source map, they are also inflated or refreshed in this map, and vice versa.

Supported API: false

Specified by:
connectAll in interface WTKeyedMap
Parameters:
source -
See Also:
WTKeyedMap.connectAll(WTKeyedMap,boolean)

connectAll

public void connectAll(WTKeyedMap source,
                       boolean put_if_not_present)
Description copied from interface: WTKeyedMap
Adds the mappings from the source map to this map. When the keys are inflated or refreshed in the source map, they are also inflated or refreshed in this map, and vice versa. If put_if_not_present is true, then mappings in the source map that don't exist in this map are added to this map.

Supported API: true

Specified by:
connectAll in interface WTKeyedMap
Parameters:
source -
put_if_not_present -

containsKey

public boolean containsKey(QueryKey queryKey)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
containsKey in interface WTKeyedMap
Parameters:
queryKey -
Returns:
boolean

containsKey

public boolean containsKey(Object key)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
containsKey in interface WTKeyedMap

containsKey

public boolean containsKey(Persistable persistable)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
containsKey in interface WTKeyedMap
Parameters:
persistable -
Returns:
boolean

containsKey

public boolean containsKey(WTReference wTReference)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
containsKey in interface WTKeyedMap
Parameters:
wTReference -
Returns:
boolean

containsValue

public boolean containsValue(Object value)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
containsValue in interface WTKeyedMap

entrySet

public Set entrySet()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
entrySet in interface WTKeyedMap

get

public Object get(Object key)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
get in interface WTKeyedMap

get

public Object get(Persistable persistable)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
get in interface WTKeyedMap
Parameters:
persistable -
Returns:
Object

get

public Object get(QueryKey queryKey)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
get in interface WTKeyedMap
Parameters:
queryKey -
Returns:
Object

get

public Object get(WTReference wTReference)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
get in interface WTKeyedMap
Parameters:
wTReference -
Returns:
Object

getKeyMask

public int getKeyMask()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
getKeyMask in interface WTKeyedMap
Returns:
int

isDeflatedOnSerialization

public boolean isDeflatedOnSerialization()
Description copied from interface: WTKeyedMap
Gets the value of the attribute: DEFLATED_ON_SERIALIZATION.

Supported API: false

Specified by:
isDeflatedOnSerialization in interface WTKeyedMap
Returns:
boolean

isEmpty

public boolean isEmpty()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
isEmpty in interface WTKeyedMap

isEnabled

public boolean isEnabled(int param)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
isEnabled in interface WTKeyedMap
Parameters:
param -
Returns:
boolean

keySet

public Set keySet()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
keySet in interface WTKeyedMap

put

public Object put(Persistable persistable,
                  Object obj)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
put in interface WTKeyedMap
Parameters:
persistable -
obj -
Returns:
Object

put

public Object put(WTReference wTReference,
                  Object obj)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
put in interface WTKeyedMap
Parameters:
wTReference -
obj -
Returns:
Object

put

public Object put(Object key,
                  Object value)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
put in interface WTKeyedMap

put

public Object put(QueryKey queryKey,
                  Object obj)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
put in interface WTKeyedMap
Parameters:
queryKey -
obj -
Returns:
Object

putAll

public void putAll(Map t)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
putAll in interface WTKeyedMap

remove

public Object remove(Persistable persistable)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
remove in interface WTKeyedMap
Parameters:
persistable -
Returns:
Object

remove

public Object remove(Object key)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
remove in interface WTKeyedMap

remove

public Object remove(WTReference wTReference)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
remove in interface WTKeyedMap
Parameters:
wTReference -
Returns:
Object

remove

public Object remove(QueryKey queryKey)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
remove in interface WTKeyedMap
Parameters:
queryKey -
Returns:
Object

setDeflatedOnSerialization

public void setDeflatedOnSerialization(boolean param)
                                throws WTPropertyVetoException
Description copied from interface: WTKeyedMap
Sets the value of the attribute: DEFLATED_ON_SERIALIZATION.

Supported API: false

Specified by:
setDeflatedOnSerialization in interface WTKeyedMap
Parameters:
param -
Throws:
WTPropertyVetoException

size

public int size()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
size in interface WTKeyedMap

values

public Collection values()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
values in interface WTKeyedMap

wtKeySet

public WTSet wtKeySet()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
wtKeySet in interface WTKeyedMap
Returns:
WTSet

equals

public boolean equals(Object o)
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
equals in interface WTKeyedMap

hashCode

public int hashCode()
Description copied from interface: WTKeyedMap


Supported API: true

Specified by:
hashCode in interface WTKeyedMap

toString

public String toString()