Package wt.fc.collections
Interface WTValuedMap
- All Superinterfaces:
Map,WTKeyedMap
- All Known Implementing Classes:
WTValuedHashMap
A WTKeyedMap in which the values are a WTCollection. This means that
values() returns a WTCollection and that the value in put(key,value)
calls follows the same type constraints as the key.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceAllows access to the value in this entry as either a Persistable, WTReference, or QueryKey. -
Method Summary
Modifier and TypeMethodDescriptionGet the value that maps to the given key as a Persistable.getPersistable(QueryKey key) Get the value that maps to the given key as a Persistable.Get the value that maps to the given key as a Persistable.getQueryKey(Persistable key) Get the value that maps to the given key as a QueryKey.getQueryKey(QueryKey key) Get the value that maps to the given key as a QueryKey.getQueryKey(WTReference key) Get the value that maps to the given key as a QueryKey.getReference(Persistable key) Get the value that maps to the given key as a WTReference.getReference(QueryKey key) Get the value that maps to the given key as a WTReference.getReference(WTReference key) Get the value that maps to the given key as a WTReference.intGet the key mask for the WTCollection of values in this map.wtValues()Convenience method that returns the values in this map as a WTCollection.Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods inherited from interface wt.fc.collections.WTKeyedMap
clear, connect, connect, connect, connect, connect, connect, connectAll, containsKey, containsKey, containsKey, containsKey, containsValue, entrySet, equals, get, get, get, get, getKeyMask, hashCode, isEmpty, isEnabled, keySet, put, put, put, put, putAll, remove, remove, remove, remove, size, values, wtKeySet
-
Method Details
-
getValueMask
int getValueMask()Get the key mask for the WTCollection of values in this map.
Supported API: true- Returns:
- int
-
wtValues
WTCollection wtValues()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- Returns:
- WTCollection
-
getPersistable
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- Parameters:
key-- Returns:
- The inflated Persistable value
- Throws:
WTException
-
getPersistable
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- Parameters:
key-- Returns:
- The inflated Persistable value
- Throws:
WTException
-
getPersistable
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- Parameters:
key-- Returns:
- The inflated Persistable value
- Throws:
WTException
-
getQueryKey
Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.
Supported API: true- Parameters:
key-- Returns:
- null or the key
-
getQueryKey
Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.
Supported API: true- Parameters:
key-- Returns:
- null or the key
-
getQueryKey
Get the value that maps to the given key as a QueryKey. If the value is non-persisted, then returns null.
Supported API: true- Parameters:
key-- Returns:
- null or the key
-
getReference
Get the value that maps to the given key as a WTReference.
Supported API: true- Parameters:
key-- Returns:
- WTReference
-
getReference
Get the value that maps to the given key as a WTReference.
Supported API: true- Parameters:
key-- Returns:
- WTReference
-
getReference
Get the value that maps to the given key as a WTReference.
Supported API: true- Parameters:
key-- Returns:
- WTReference
-