org.alfresco.util
Interface OneToManyBiMap

All Superinterfaces:
java.util.Map, OneToManyMap
All Known Implementing Classes:
OneToManyHashBiMap

public interface OneToManyBiMap
extends OneToManyMap

An extension of org.alfresco.util.OneToManyMap that stores the inverse mapping from a value to its key.


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry
 
Method Summary
 java.lang.Object getKey(java.lang.Object value)
          Returns the key, if any, for the specified value.
 java.lang.Object removeValue(java.lang.Object value)
          Removes the specified value from the OneToManyBiMap.
 
Methods inherited from interface org.alfresco.util.OneToManyMap
containsSingleValue, entries, flatValues, putAllSingleValues, putSingleValue
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

getKey

java.lang.Object getKey(java.lang.Object value)
Returns the key, if any, for the specified value. If the specified value does not exist within the map then this method returns null.

Parameters:
value -
Returns:
The key to the specified value or null.

removeValue

java.lang.Object removeValue(java.lang.Object value)
Removes the specified value from the OneToManyBiMap. 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.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.