Class IdentityHashSetMap<K,​V>

  • Type Parameters:
    K - The type of map key.
    V - The type of map value.
    All Implemented Interfaces:
    CollectionMap<K,​V,​java.util.Set<V>>, java.util.Map<K,​java.util.Set<V>>

    public class IdentityHashSetMap<K,​V>
    extends AbstractDecoratorCollectionMap<K,​V,​java.util.Set<V>>
    An decorator map that stores an IdentityHashSet of values for each key, with special methods for retrieving single values.
    Author:
    Garret Wilson
    • Constructor Detail

      • IdentityHashSetMap

        public IdentityHashSetMap​(java.util.Map<K,​java.util.Set<V>> map)
        Map constructor.
        Parameters:
        map - The map this map should decorate.
        Throws:
        java.lang.NullPointerException - if the provided map is null.
    • Method Detail

      • createCollection

        public java.util.Set<V> createCollection()
        Creates a collection in which to store values. This version returns an IdentityHashSet.
        Returns:
        The collections with the values stored.