Package org.alfresco.util
Interface OneToManyBiMap<K,V>
- All Superinterfaces:
Map<K,
,Set<V>> OneToManyMap<K,
V>
- All Known Implementing Classes:
OneToManyHashBiMap
An extension of
org.alfresco.util.OneToManyMap
that stores the
inverse mapping from a value to its key.- Author:
- Nick Smith
-
Nested Class Summary
-
Method Summary
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from interface org.alfresco.util.OneToManyMap
containsSingleValue, entries, flatValues, putAllSingleValues, putSingleValue
-
Method Details
-
getKey
Returns the key, if any, for the specifiedvalue
. If the specified value does not exist within the map then this method returnsnull
.- Parameters:
value
-- Returns:
- The key to the specified
value
ornull
.
-
removeValue
Removes the specifiedvalue
from theOneToManyBiMap
. If this was the only value associated with the key to this value, then the key is also removed.- Parameters:
value
- The value to be removed.- Returns:
- The key that is associated with the value to be removed.
-