org.jboss.weld.util.collections
Class ArraySetMultimap<K,V>
java.lang.Object
java.util.AbstractMap<K,List<V>>
org.jboss.weld.util.collections.ArraySetMultimap<K,V>
- All Implemented Interfaces:
- Map<K,List<V>>
public class ArraySetMultimap<K,V>
- extends AbstractMap<K,List<V>>
A Map
that can contain multiple values, where the keys
and values are stored in ArraySet
instances.
- Author:
- David Allen
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
ArraySetMultimap
public ArraySetMultimap()
ArraySetMultimap
public ArraySetMultimap(Map<K,List<V>> map)
get
public List<V> get(Object key)
- Specified by:
get
in interface Map<K,List<V>>
- Overrides:
get
in class AbstractMap<K,List<V>>
putSingleElement
public List<V> putSingleElement(K key,
V value)
trimToSize
public void trimToSize()
entrySet
public Set<Map.Entry<K,List<V>>> entrySet()
- Specified by:
entrySet
in interface Map<K,List<V>>
- Specified by:
entrySet
in class AbstractMap<K,List<V>>
Copyright © 2013 Seam Framework. All Rights Reserved.