common
Class IndexedMultiMap.EmptyIndexedMultiMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by common.MultiMap.EmptyMultiMap
          extended by common.IndexedMultiMap.EmptyIndexedMultiMap
All Implemented Interfaces:
IndexedMultiMap, MultiMap, java.util.Map
Enclosing interface:
IndexedMultiMap

public static class IndexedMultiMap.EmptyIndexedMultiMap
extends MultiMap.EmptyMultiMap
implements IndexedMultiMap


Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface common.IndexedMultiMap
IndexedMultiMap.EmptyIndexedMultiMap
 
Nested classes/interfaces inherited from interface common.MultiMap
MultiMap.EmptyMultiMap
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
 
Fields inherited from interface common.IndexedMultiMap
EMPTY_INDEXED_MULTI_MAP
 
Fields inherited from interface common.MultiMap
EMPTY_MULTI_MAP
 
Constructor Summary
IndexedMultiMap.EmptyIndexedMultiMap()
           
 
Method Summary
 java.lang.Object get(java.lang.Object key)
          Returns the set associated with the given key.
 
Methods inherited from class common.MultiMap.EmptyMultiMap
add, addAll, entrySet, remove, removeAll
 
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
 
Methods inherited from interface common.MultiMap
add, addAll, put, remove, removeAll
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, putAll, remove, size, values
 

Constructor Detail

IndexedMultiMap.EmptyIndexedMultiMap

public IndexedMultiMap.EmptyIndexedMultiMap()
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Description copied from interface: MultiMap
Returns the set associated with the given key. If the key is not in the map, returns an empty set. The set returned is modifiable and backed by this multi-map: if values are added for the given key, they will show up in the returned set. However, the returned set may lose its connection to this multi-map if the multi-map's put method is called or if all the values for the given key are removed.

Specified by:
get in interface MultiMap
Specified by:
get in interface java.util.Map
Overrides:
get in class MultiMap.EmptyMultiMap