|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Map in which the keys are a WTSet. This means that the keys in the
put() methods must obey the contract of WTCollection.add(Object)
.
Supported API: true
Extendable: false
WTSet
Nested Class Summary | |
static interface |
WTKeyedMap.WTEntry
Allows access to the keys in the entry in either Persistable, WTReference, or QueryKey forms |
Nested classes inherited from class java.util.Map |
Map.Entry |
Field Summary | |
static String |
DEFLATED_ON_SERIALIZATION
Label for the attribute. |
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 p,
WTKeyedMap source)
Adds the mapping for the given key to this map from the source map. |
Object |
connect(Persistable p,
WTKeyedMap source,
boolean put_if_not_present)
Adds the mapping for the given key to this map from the source map. |
Object |
connect(QueryKey query_key,
Object value,
WTKeyedMap source)
Connects the given key with the key in source. |
Object |
connect(QueryKey query_key,
WTKeyedMap source)
Adds the mapping for the given key to this map from the source map. |
Object |
connect(QueryKey query_key,
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 ref,
WTKeyedMap source)
Adds the mapping for the given key to this map from the source map. |
Object |
connect(WTReference ref,
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 p)
Supported API: true |
boolean |
containsKey(QueryKey query_key)
Supported API: true |
boolean |
containsKey(WTReference ref)
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 p)
Supported API: true |
Object |
get(QueryKey query_key)
Supported API: true |
Object |
get(WTReference ref)
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 mask)
Supported API: true |
Set |
keySet()
Supported API: true |
Object |
put(Object key,
Object value)
Supported API: true |
Object |
put(Persistable p,
Object value)
Supported API: true |
Object |
put(QueryKey query_key,
Object value)
Supported API: true |
Object |
put(WTReference ref,
Object value)
Supported API: true |
void |
putAll(Map map)
Supported API: true |
Object |
remove(Object key)
Supported API: true |
Object |
remove(Persistable p)
Supported API: true |
Object |
remove(QueryKey query_key)
Supported API: true |
Object |
remove(WTReference ref)
Supported API: true |
void |
setDeflatedOnSerialization(boolean a_DeflatedOnSerialization)
Sets the value of the attribute: DEFLATED_ON_SERIALIZATION. |
int |
size()
Supported API: true |
Collection |
values()
Supported API: true |
WTSet |
wtKeySet()
Supported API: true |
Field Detail |
public static final String DEFLATED_ON_SERIALIZATION
Method Detail |
public boolean isDeflatedOnSerialization()
public void setDeflatedOnSerialization(boolean a_DeflatedOnSerialization) throws WTPropertyVetoException
a_DeflatedOnSerialization
-
WTPropertyVetoException
public void clear()
clear
in interface Map
public Object connect(Persistable p, WTKeyedMap source)
p
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMapconnect(Persistable,WTKeyedMap,boolean)
public Object connect(QueryKey query_key, WTKeyedMap source)
query_key
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMapconnect(Persistable,WTKeyedMap,boolean)
public Object connect(WTReference ref, WTKeyedMap source)
ref
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMapconnect(WTReference,WTKeyedMap,boolean)
public Object connect(Persistable p, WTKeyedMap source, boolean put_if_not_present)
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.
p
- source
- put_if_not_present
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMappublic Object connect(WTReference ref, WTKeyedMap source, boolean put_if_not_present)
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.
ref
- source
- put_if_not_present
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMappublic Object connect(QueryKey query_key, WTKeyedMap source, boolean put_if_not_present)
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.
query_key
- source
- put_if_not_present
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMappublic Object connect(Persistable p, Object value, WTKeyedMap source)
p
- value
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMappublic Object connect(QueryKey query_key, Object value, WTKeyedMap source)
query_key
- value
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMappublic Object connect(WTReference ref, Object value, WTKeyedMap source)
ref
- value
- source
-
IllegalArgumentException
- If the source does not have the same
key type as this map.
ClassCastException
- If this map does not support connection
with the source's implementation of WTKeyedMappublic void connectAll(WTKeyedMap source)
source
-
IllegalArgumentException
- If source does not have the same
key type as this map
ClassCastException
- If this map does not support connection
with source's implementation of WTKeyedMap.connectAll(WTKeyedMap,boolean)
public void connectAll(WTKeyedMap source, boolean put_if_not_present)
put_if_not_present
is true
, then mappings in the source map that don't exist
in this map are added to this map.
source
- put_if_not_present
-
IllegalArgumentException
- If source does not have the same
key type as this map
ClassCastException
- If this map does not support connection
with source's implementation of WTKeyedMap.public boolean containsKey(Object key)
containsKey
in interface Map
key
-
public boolean containsKey(Persistable p)
p
-
public boolean containsKey(QueryKey query_key)
query_key
-
public boolean containsKey(WTReference ref)
ref
-
public boolean containsValue(Object value)
containsValue
in interface Map
value
-
public Set entrySet()
entrySet
in interface Map
public boolean equals(Object o)
equals
in interface Map
o
-
public Object get(Object key)
get
in interface Map
key
-
public Object get(Persistable p)
p
-
public Object get(QueryKey query_key)
query_key
-
public Object get(WTReference ref)
ref
-
public int getKeyMask()
public int hashCode()
hashCode
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public boolean isEnabled(int mask)
mask
-
public Set keySet()
keySet
in interface Map
public Object put(Object key, Object value)
put
in interface Map
key
- value
-
public Object put(Persistable p, Object value)
p
- value
-
public Object put(QueryKey query_key, Object value)
query_key
- value
-
public Object put(WTReference ref, Object value)
ref
- value
-
public void putAll(Map map)
putAll
in interface Map
map
- public Object remove(Object key)
remove
in interface Map
key
-
public Object remove(Persistable p)
p
-
public Object remove(QueryKey query_key)
query_key
-
public Object remove(WTReference ref)
ref
-
public int size()
size
in interface Map
public Collection values()
values
in interface Map
public WTSet wtKeySet()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |