org.jboss.weld.util.collections
Class ArraySetMultimap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,List<V>>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
ArraySetMultimap()
           
ArraySetMultimap(Map<K,List<V>> map)
           
 
Method Summary
 Set<Map.Entry<K,List<V>>> entrySet()
           
 List<V> get(Object key)
           
 List<V> putSingleElement(K key, V value)
           
 void trimToSize()
           
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArraySetMultimap

public ArraySetMultimap()

ArraySetMultimap

public ArraySetMultimap(Map<K,List<V>> map)
Method Detail

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.