Package com.globalmentor.collections
Class IdentityHashSetMap<K,V>
- java.lang.Object
-
- com.globalmentor.collections.MapDecorator<K,C>
-
- com.globalmentor.collections.AbstractDecoratorCollectionMap<K,V,java.util.Set<V>>
-
- com.globalmentor.collections.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 anIdentityHashSet
of values for each key, with special methods for retrieving single values.- Author:
- Garret Wilson
-
-
Field Summary
-
Fields inherited from class com.globalmentor.collections.MapDecorator
map
-
-
Constructor Summary
Constructors Constructor Description IdentityHashSetMap(java.util.Map<K,java.util.Set<V>> map)
Map constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<V>
createCollection()
Creates a collection in which to store values.-
Methods inherited from class com.globalmentor.collections.AbstractDecoratorCollectionMap
addItem, getCollection, getItem, getItemCount, getItems, hasItems, removeItem
-
Methods inherited from class com.globalmentor.collections.MapDecorator
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
-
-
-
-
Method Detail
-
createCollection
public java.util.Set<V> createCollection()
Creates a collection in which to store values. This version returns anIdentityHashSet
.- Returns:
- The collections with the values stored.
-
-