Package com.google.common.collect
Class AbstractMapBasedMultimap.AsMap
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- com.google.common.collect.Maps.ViewCachingAbstractMap<K,java.util.Collection<V>>
-
- com.google.common.collect.AbstractMapBasedMultimap.AsMap
-
- All Implemented Interfaces:
java.util.Map<K,java.util.Collection<V>>
- Direct Known Subclasses:
AbstractMapBasedMultimap.SortedAsMap
- Enclosing class:
- AbstractMapBasedMultimap<K,V>
private class AbstractMapBasedMultimap.AsMap extends Maps.ViewCachingAbstractMap<K,java.util.Collection<V>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AbstractMapBasedMultimap.AsMap.AsMapEntries
(package private) class
AbstractMapBasedMultimap.AsMap.AsMapIterator
Iterator across all keys and value collections.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(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()
.boolean
equals(java.lang.Object object)
java.util.Collection<V>
get(java.lang.Object key)
int
hashCode()
java.util.Set<K>
keySet()
java.util.Collection<V>
remove(java.lang.Object key)
int
size()
java.lang.String
toString()
(package private) java.util.Map.Entry<K,java.util.Collection<V>>
wrapEntry(java.util.Map.Entry<K,java.util.Collection<V>> entry)
-
Methods inherited from class com.google.common.collect.Maps.ViewCachingAbstractMap
createKeySet, createValues, entrySet, values
-
-
-
-
Method Detail
-
createEntrySet
protected java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> createEntrySet()
Description copied from class:Maps.ViewCachingAbstractMap
Creates the entry set to be returned byMaps.ViewCachingAbstractMap.entrySet()
. This method is invoked at most once on a given map, at the time whenentrySet
is first called.- Specified by:
createEntrySet
in classMaps.ViewCachingAbstractMap<K,java.util.Collection<V>>
-
containsKey
public boolean containsKey(java.lang.Object key)
-
get
public java.util.Collection<V> get(java.lang.Object key)
-
keySet
public java.util.Set<K> keySet()
-
size
public int size()
-
remove
public java.util.Collection<V> remove(java.lang.Object key)
-
equals
public boolean equals(@Nullable java.lang.Object object)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
-
clear
public void clear()
-
-