Interface OneToManyBiMap<K,​V>

  • All Superinterfaces:
    Map<K,​Set<V>>, OneToManyMap<K,​V>
    All Known Implementing Classes:
    OneToManyHashBiMap

    public interface OneToManyBiMap<K,​V>
    extends OneToManyMap<K,​V>
    An extension of org.alfresco.util.OneToManyMap that stores the inverse mapping from a value to its key.
    Author:
    Nick Smith
    • Method Detail

      • getKey

        K getKey​(V 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

        K removeValue​(V 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.