Package wt.fc.collections
Interface WTKeyedMap
- All Superinterfaces:
Map
- All Known Subinterfaces:
WTValuedMap
- All Known Implementing Classes:
WTKeyedHashMap,WTValuedHashMap
A Map in which the keys are a WTSet. This means that the keys in the
put() methods must obey the contract of
Supported API: true
Extendable: false
WTCollection.add(Object).
Supported API: true
Extendable: false
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAllows access to the keys in the entry in either Persistable, WTReference, or QueryKey forms
Supported API: true
Extendable: false -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()
Supported API: trueconnect(Persistable p, Object value, WTKeyedMap source) Adds the mapping for the given key to this map from the source map.connect(Persistable p, WTKeyedMap source, boolean put_if_not_present) Adds the mapping for the given key to this map from the source map.connect(QueryKey query_key, Object value, WTKeyedMap source) Connects the given key with the key in source.connect(QueryKey query_key, WTKeyedMap source, boolean put_if_not_present) Connects the given key with the key in source.connect(WTReference ref, Object value, WTKeyedMap source) Connects the given key with the key in source.connect(WTReference ref, WTKeyedMap source, boolean put_if_not_present) Adds the mapping for the given key to this map from the source map.voidconnectAll(WTKeyedMap source, boolean put_if_not_present) Adds the mappings from the source map to this map.booleancontainsKey(Object key)
Supported API: trueboolean
Supported API: truebooleancontainsKey(QueryKey query_key)
Supported API: truebooleancontainsKey(WTReference ref)
Supported API: truebooleancontainsValue(Object value)
Supported API: trueentrySet()
Supported API: trueboolean
Supported API: true
Supported API: trueget(Persistable p)
Supported API: true
Supported API: trueget(WTReference ref)
Supported API: trueint
Supported API: trueinthashCode()
Supported API: truebooleanisEmpty()
Supported API: truebooleanisEnabled(int mask)
Supported API: truekeySet()
Supported API: true
Supported API: trueput(Persistable p, Object value)
Supported API: true
Supported API: trueput(WTReference ref, Object value)
Supported API: truevoid
Supported API: true
Supported API: true
Supported API: true
Supported API: trueremove(WTReference ref)
Supported API: trueintsize()
Supported API: truevalues()
Supported API: truewtKeySet()
Supported API: trueMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Method Details
-
clear
void clear()
Supported API: true -
connect
Adds the mapping for the given key to this map from the source map. Ifput_if_not_presentistrue, 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- Parameters:
p-source-put_if_not_present-- Returns:
- The old value for key in this map, if any
- Throws:
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
-
connect
Adds the mapping for the given key to this map from the source map. Ifput_if_not_presentistrue, 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- Parameters:
ref-source-put_if_not_present-- Returns:
- The old value for key in this map, if any
- Throws:
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
-
connect
Connects the given key with the key in source. Ifput_if_not_presentistrue, 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- Parameters:
query_key-source-put_if_not_present-- Returns:
- The old value for key in this map, if any
- Throws:
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
-
connect
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- Parameters:
p-value-source-- Returns:
- The old value for key in this map, if any
- Throws:
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
-
connect
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- Parameters:
query_key-value-source-- Returns:
- The old value for key in this map, if any
- Throws:
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
-
connect
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- Parameters:
ref-value-source-- Returns:
- The old value for key in this map, if any
- Throws:
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
-
connectAll
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. Ifput_if_not_presentistrue, then mappings in the source map that don't exist in this map are added to this map.
Supported API: true- Parameters:
source-put_if_not_present-- Throws:
IllegalArgumentException- If source does not have the same key type as this mapClassCastException- If this map does not support connection with source's implementation of WTKeyedMap.
-
containsKey
Supported API: true- Specified by:
containsKeyin interfaceMap- Parameters:
key-- Returns:
- boolean
-
containsKey
Supported API: true- Parameters:
p-- Returns:
- boolean
-
containsKey
Supported API: true- Parameters:
query_key-- Returns:
- boolean
-
containsKey
Supported API: true- Parameters:
ref-- Returns:
- boolean
-
containsValue
Supported API: true- Specified by:
containsValuein interfaceMap- Parameters:
value-- Returns:
- boolean
-
entrySet
Set entrySet()
Supported API: true -
equals
Supported API: true -
get
Supported API: true -
get
Supported API: true- Parameters:
p-- Returns:
- Object
-
get
Supported API: true- Parameters:
query_key-- Returns:
- Object
-
get
Supported API: true- Parameters:
ref-- Returns:
- Object
-
getKeyMask
int getKeyMask()
Supported API: true- Returns:
- int
-
hashCode
int hashCode()
Supported API: true -
isEmpty
boolean isEmpty()
Supported API: true -
isEnabled
boolean isEnabled(int mask)
Supported API: true- Parameters:
mask-- Returns:
- boolean
-
keySet
Set keySet()
Supported API: true -
put
Supported API: true -
put
Supported API: true- Parameters:
p-value-- Returns:
- Object
-
put
Supported API: true- Parameters:
query_key-value-- Returns:
- Object
-
put
Supported API: true- Parameters:
ref-value-- Returns:
- Object
-
putAll
Supported API: true -
remove
Supported API: true -
remove
Supported API: true- Parameters:
p-- Returns:
- Object
-
remove
Supported API: true- Parameters:
query_key-- Returns:
- Object
-
remove
Supported API: true- Parameters:
ref-- Returns:
- Object
-
size
int size()
Supported API: true -
values
Collection values()
Supported API: true -
wtKeySet
WTSet wtKeySet()
Supported API: true- Returns:
- WTSet
-