wt.fc.collections
Class EmptyCollections.EmptyValuedMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended bywt.fc.collections.EmptyCollections.EmptyKeyedMap
          extended bywt.fc.collections.EmptyCollections.EmptyValuedMap
All Implemented Interfaces:
Map, Serializable, WTKeyedMap, WTValuedMap
Enclosing class:
EmptyCollections

static class EmptyCollections.EmptyValuedMap
extends EmptyCollections.EmptyKeyedMap
implements WTValuedMap


Nested Class Summary
 
Nested classes inherited from class java.util.AbstractMap
 
Nested classes inherited from class wt.fc.collections.WTValuedMap
WTValuedMap.WTValuedEntry
 
Nested classes inherited from class wt.fc.collections.WTKeyedMap
WTKeyedMap.WTEntry
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
 
Fields inherited from class java.util.AbstractMap
 
Fields inherited from interface wt.fc.collections.WTKeyedMap
DEFLATED_ON_SERIALIZATION
 
Constructor Summary
(package private) EmptyCollections.EmptyValuedMap()
           
 
Method Summary
 void clear()
          

Supported API: true
 Object connect(Persistable p, 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 key, 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 ref, 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
 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
 Persistable getPersistable(Persistable key)
          Get the value that maps to the given key as a Persistable.
 Persistable getPersistable(QueryKey key)
          Get the value that maps to the given key as a Persistable.
 Persistable getPersistable(WTReference key)
          Get the value that maps to the given key as a Persistable.
 QueryKey getQueryKey(Persistable key)
          Get the value that maps to the given key as a QueryKey.
 QueryKey getQueryKey(QueryKey key)
          Get the value that maps to the given key as a QueryKey.
 QueryKey getQueryKey(WTReference key)
          Get the value that maps to the given key as a QueryKey.
 WTReference getReference(Persistable key)
          Get the value that maps to the given key as a WTReference.
 WTReference getReference(QueryKey key)
          Get the value that maps to the given key as a WTReference.
 WTReference getReference(WTReference key)
          Get the value that maps to the given key as a WTReference.
 int getValueMask()
          Get the key mask for the WTCollection of values in this map.
 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
private  Object readResolve()
           
 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
 Collection values()
          

Supported API: true
 WTSet wtKeySet()
          

Supported API: true
 WTCollection wtValues()
          Convenience method that returns the values in this map as a WTCollection.
 
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 wt.fc.collections.WTKeyedMap
clear, connect, connect, connect, connect, connect, connect, connect, connect, connect, connectAll, connectAll, containsKey, containsKey, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, get, getKeyMask, hashCode, isDeflatedOnSerialization, isEmpty, isEnabled, keySet, put, put, put, put, putAll, remove, remove, remove, remove, setDeflatedOnSerialization, size, values, wtKeySet
 

Constructor Detail

EmptyCollections.EmptyValuedMap

EmptyCollections.EmptyValuedMap()
Method Detail

getValueMask

public int getValueMask()
Description copied from interface: WTValuedMap
Get the key mask for the WTCollection of values in this map.

Supported API: true

Specified by:
getValueMask in interface WTValuedMap
Returns:
int

getPersistable

public Persistable getPersistable(Persistable key)
                           throws WTException
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a Persistable. If the value is not inflated, then the map will inflate it. This may result in the inflation of all instances of the uninflated object's class.

Supported API: true

Specified by:
getPersistable in interface WTValuedMap
Parameters:
key -
Returns:
The inflated Persistable value
Throws:
WTException

getPersistable

public Persistable getPersistable(QueryKey key)
                           throws WTException
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a Persistable. If the value is not inflated, then the map will inflate it. This may result in the inflation of all instances of the uninflated object's class.

Supported API: true

Specified by:
getPersistable in interface WTValuedMap
Parameters:
key -
Returns:
The inflated Persistable value
Throws:
WTException

getPersistable

public Persistable getPersistable(WTReference key)
                           throws WTException
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a Persistable. If the value is not inflated, then the map will inflate it. This may result in the inflation of all instances of the uninflated object's class.

Supported API: true

Specified by:
getPersistable in interface WTValuedMap
Parameters:
key -
Returns:
The inflated Persistable value
Throws:
WTException

getQueryKey

public QueryKey getQueryKey(Persistable key)
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.

Supported API: true

Specified by:
getQueryKey in interface WTValuedMap
Parameters:
key -
Returns:
null or the key

getQueryKey

public QueryKey getQueryKey(QueryKey key)
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.

Supported API: true

Specified by:
getQueryKey in interface WTValuedMap
Parameters:
key -
Returns:
null or the key

getQueryKey

public QueryKey getQueryKey(WTReference key)
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.

Supported API: true

Specified by:
getQueryKey in interface WTValuedMap
Parameters:
key -
Returns:
null or the key

getReference

public WTReference getReference(Persistable key)
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a WTReference.

Supported API: true

Specified by:
getReference in interface WTValuedMap
Parameters:
key -
Returns:
WTReference

getReference

public WTReference getReference(QueryKey key)
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a WTReference.

Supported API: true

Specified by:
getReference in interface WTValuedMap
Parameters:
key -
Returns:
WTReference

getReference

public WTReference getReference(WTReference key)
Description copied from interface: WTValuedMap
Get the value that maps to the given key as a WTReference.

Supported API: true

Specified by:
getReference in interface WTValuedMap
Parameters:
key -
Returns:
WTReference

wtValues

public WTCollection wtValues()
Description copied from interface: WTValuedMap
Convenience method that returns the values in this map as a WTCollection. The resulting collection should be the same one that is returned by a call to values().

Supported API: true

Specified by:
wtValues in interface WTValuedMap
Returns:
WTCollection

readResolve

private Object readResolve()

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(WTReference ref,
                      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:
ref -
value -
source -
Returns:
The old value for key in this map, if any

connect

public Object connect(Persistable p,
                      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:
p -
value -
source -
Returns:
The old value for key in this map, if any

connect

public Object connect(QueryKey key,
                      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:
key -
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