org.semanticweb.elk.util.collections
Class HashListMultimap<Key,Value>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by org.semanticweb.elk.util.collections.ArrayHashMap<Key,Collection<Value>>
          extended by org.semanticweb.elk.util.collections.AbstractHashMultimap<Key,Value>
              extended by org.semanticweb.elk.util.collections.HashListMultimap<Key,Value>
Type Parameters:
Key -
Value -
All Implemented Interfaces:
Map<Key,Collection<Value>>, Multimap<Key,Value>

public class HashListMultimap<Key,Value>
extends AbstractHashMultimap<Key,Value>

Implementation of Multimap backed by an ArrayHashMap

Author:
Frantisek Simancik

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
 
Fields inherited from class org.semanticweb.elk.util.collections.ArrayHashMap
keys, size, values
 
Constructor Summary
HashListMultimap()
           
HashListMultimap(int i)
           
 
Method Summary
protected  Collection<Value> newRecord()
           
 
Methods inherited from class org.semanticweb.elk.util.collections.AbstractHashMultimap
add, contains, get, getOld, remove
 
Methods inherited from class org.semanticweb.elk.util.collections.ArrayHashMap
clear, containsKey, containsValue, entrySet, isEmpty, keySet, put, remove, size, values
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, putAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.elk.util.collections.Multimap
clear, isEmpty, keySet
 
Methods inherited from interface java.util.Map
equals, hashCode, putAll
 

Constructor Detail

HashListMultimap

public HashListMultimap()

HashListMultimap

public HashListMultimap(int i)
Method Detail

newRecord

protected Collection<Value> newRecord()
Specified by:
newRecord in class AbstractHashMultimap<Key,Value>


Copyright © 2011-2013 Department of Computer Science, University of Oxford. All Rights Reserved.