Package wt.fc.collections
Class WTValuedHashMap
java.lang.Object
java.util.AbstractMap
wt.fc.collections.WTKeyedHashMap
wt.fc.collections.WTValuedHashMap
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Map,WTKeyedMap,WTValuedMap,ResultProcessor,Evolvable
The key mask for the values collection can be specified in the constructor.
If it is not specified, then the values use the same key mask as the
keys.
Note: this class is Evolvable. You probably don't want to take
advantage of this, though, because what you've really got is an
association and you should just accept that, model it, and let the system
handle data integrity for you. But, if you ignore this advice, be aware
that only the references themselves (and not their persistables) will be
blobbed (unless the object hasn't been persisted, in which case
it'll attempt to blob the entire persistable and fail (unless the
persistable itself is Evolvable)) and that nobody's guaranteeing the
objects being referred to will still be around when you later de-blob the
collection and attempt to inflate the references.
Supported API: true
Extendable: false
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K extends Object,V extends Object> Nested classes/interfaces inherited from interface wt.fc.collections.WTValuedMap
WTValuedMap.WTValuedEntry -
Constructor Summary
ConstructorsConstructorDescription
Supported API: trueWTValuedHashMap(int initial_capacity)
Supported API: trueWTValuedHashMap(int initial_capacity, int key_mask)
Supported API: trueWTValuedHashMap(int initial_capacity, int key_mask, int value_mask)
Supported API: true
Supported API: trueWTValuedHashMap(Map m, int key_mask)
Supported API: trueWTValuedHashMap(Map m, int key_mask, int value_mask)
Supported API: true -
Method Summary
Methods inherited from class wt.fc.collections.WTKeyedHashMap
cloneMethods inherited from class java.util.AbstractMap
toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface wt.fc.collections.WTKeyedMap
connect, connect, connect, connect, connect, connect, connectAll, containsKey, containsKey, containsKey, containsKey, entrySet, equals, get, get, get, get, getKeyMask, hashCode, isEmpty, isEnabled, keySet, put, put, put, put, remove, remove, remove, remove, size, values, wtKeySet
-
Constructor Details
-
WTValuedHashMap
public WTValuedHashMap()
Supported API: true -
WTValuedHashMap
public WTValuedHashMap(int initial_capacity)
Supported API: true- Parameters:
initial_capacity-
-
WTValuedHashMap
public WTValuedHashMap(int initial_capacity, int key_mask)
Supported API: true- Parameters:
initial_capacity-key_mask-
-
WTValuedHashMap
public WTValuedHashMap(int initial_capacity, int key_mask, int value_mask)
Supported API: true- Parameters:
initial_capacity-key_mask-value_mask-
-
WTValuedHashMap
Supported API: true- Parameters:
m-
-
WTValuedHashMap
Supported API: true- Parameters:
m-key_mask-
-
WTValuedHashMap
Supported API: true- Parameters:
m-key_mask-value_mask-
-