Interface OneToManyBiMap<K,​V>

  • All Superinterfaces:
    java.util.Map<K,​java.util.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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      K getKey​(V value)
      Returns the key, if any, for the specified value.
      K removeValue​(V value)
      Removes the specified value from the OneToManyBiMap.
      • 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
    • 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.