|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WTKeyedMap
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 |
wt.fc.collections.WTKeyedMap.WTEntry
Allows access to the keys in the entry in either Persistable, WTReference, or QueryKey forms |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| 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,
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,
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,
boolean put_if_not_present)
Adds the mapping for the given key to this map from the source 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 |
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 |
int |
size()
Supported API: true |
Collection |
values()
Supported API: true |
WTSet |
wtKeySet()
Supported API: true |
| Method Detail |
|---|
void clear()
clear in interface Map
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 WTKeyedMap
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 WTKeyedMap
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 WTKeyedMap
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 WTKeyedMap
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 WTKeyedMap
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 WTKeyedMap
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.boolean containsKey(Object key)
containsKey in interface Mapkey -
boolean containsKey(Persistable p)
p -
boolean containsKey(QueryKey query_key)
query_key -
boolean containsKey(WTReference ref)
ref -
boolean containsValue(Object value)
containsValue in interface Mapvalue -
Set entrySet()
entrySet in interface Mapboolean equals(Object o)
equals in interface Mapequals in class Objecto -
Object get(Object key)
get in interface Mapkey -
Object get(Persistable p)
p -
Object get(QueryKey query_key)
query_key -
Object get(WTReference ref)
ref -
int getKeyMask()
int hashCode()
hashCode in interface MaphashCode in class Objectboolean isEmpty()
isEmpty in interface Mapboolean isEnabled(int mask)
mask -
Set keySet()
keySet in interface Map
Object put(Object key,
Object value)
put in interface Mapkey - value -
Object put(Persistable p,
Object value)
p - value -
Object put(QueryKey query_key,
Object value)
query_key - value -
Object put(WTReference ref,
Object value)
ref - value -
void putAll(Map map)
putAll in interface Mapmap - Object remove(Object key)
remove in interface Mapkey -
Object remove(Persistable p)
p -
Object remove(QueryKey query_key)
query_key -
Object remove(WTReference ref)
ref -
int size()
size in interface MapCollection values()
values in interface MapWTSet wtKeySet()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||