Package com.google.common.collect
Class Multimaps.AsMap<K,V>
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.google.common.collect.Maps.ViewCachingAbstractMap<K,java.util.Collection<V>>
-
- com.google.common.collect.Multimaps.AsMap<K,V>
-
- All Implemented Interfaces:
java.util.Map<K,java.util.Collection<V>>
- Enclosing class:
- Multimaps
static final class Multimaps.AsMap<K,V> extends Maps.ViewCachingAbstractMap<K,java.util.Collection<V>>
A skeleton implementation ofMultimap.asMap().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) classMultimaps.AsMap.EntrySet
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object key)protected java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>>createEntrySet()Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet().java.util.Collection<V>get(java.lang.Object key)booleanisEmpty()java.util.Set<K>keySet()java.util.Collection<V>remove(java.lang.Object key)(package private) voidremoveValuesForKey(java.lang.Object key)intsize()-
Methods inherited from class com.google.common.collect.Maps.ViewCachingAbstractMap
createKeySet, createValues, entrySet, values
-
Methods inherited from class java.util.AbstractMap
clone, containsValue, equals, hashCode, put, putAll, toString
-
-
-
-
Method Detail
-
size
public int size()
-
createEntrySet
protected java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> createEntrySet()
Description copied from class:Maps.ViewCachingAbstractMapCreates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet(). This method is invoked at most once on a given map, at the time whenentrySetis first called.- Specified by:
createEntrySetin classMaps.ViewCachingAbstractMap<K,java.util.Collection<V>>
-
removeValuesForKey
void removeValuesForKey(java.lang.Object key)
-
get
public java.util.Collection<V> get(java.lang.Object key)
-
remove
public java.util.Collection<V> remove(java.lang.Object key)
-
keySet
public java.util.Set<K> keySet()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(java.lang.Object key)
-
-