Package com.google.common.collect
Class AbstractMapBasedMultimap.KeySet
java.lang.Object
java.util.AbstractCollection<K>
java.util.AbstractSet<K>
com.google.common.collect.Sets.ImprovedAbstractSet<K>
com.google.common.collect.Maps.KeySet<K,Collection<V>>
com.google.common.collect.AbstractMapBasedMultimap.KeySet
- All Implemented Interfaces:
Iterable<K>
,Collection<K>
,Set<K>
- Direct Known Subclasses:
AbstractMapBasedMultimap.SortedKeySet
- Enclosing class:
AbstractMapBasedMultimap<K,
V>
-
Field Summary
Fields inherited from class com.google.common.collect.Maps.KeySet
map
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
containsAll
(Collection<?> c) boolean
int
hashCode()
iterator()
boolean
Methods inherited from class com.google.common.collect.Maps.KeySet
contains, forEach, isEmpty, map, size
Methods inherited from class com.google.common.collect.Sets.ImprovedAbstractSet
removeAll, retainAll
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
KeySet
KeySet(Map<K, Collection<V>> subMap)
-
-
Method Details
-
iterator
- Specified by:
iterator
in interfaceCollection<K>
- Specified by:
iterator
in interfaceIterable<K>
- Specified by:
iterator
in interfaceSet<K>
- Overrides:
iterator
in classMaps.KeySet<K,
Collection<V>>
-
spliterator
-
remove
- Specified by:
remove
in interfaceCollection<K>
- Specified by:
remove
in interfaceSet<K>
- Overrides:
remove
in classMaps.KeySet<K,
Collection<V>>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<K>
- Specified by:
clear
in interfaceSet<K>
- Overrides:
clear
in classMaps.KeySet<K,
Collection<V>>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<K>
- Specified by:
containsAll
in interfaceSet<K>
- Overrides:
containsAll
in classAbstractCollection<K>
-
equals
- Specified by:
equals
in interfaceCollection<K>
- Specified by:
equals
in interfaceSet<K>
- Overrides:
equals
in classAbstractSet<K>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<K>
- Specified by:
hashCode
in interfaceSet<K>
- Overrides:
hashCode
in classAbstractSet<K>
-