Package com.google.common.collect
Class ImmutableMultimap.EntryCollection<K,V>
java.lang.Object
java.util.AbstractCollection<Map.Entry<K,V>>
com.google.common.collect.ImmutableCollection<Map.Entry<K,V>>
com.google.common.collect.ImmutableMultimap.EntryCollection<K,V>
- All Implemented Interfaces:
Serializable
,Iterable<Map.Entry<K,
,V>> Collection<Map.Entry<K,
V>>
- Enclosing class:
ImmutableMultimap<K,
V>
private static class ImmutableMultimap.EntryCollection<K,V>
extends ImmutableCollection<Map.Entry<K,V>>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableCollection
ImmutableCollection.Builder<E>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final ImmutableMultimap
<K, V> private static final long
Fields inherited from class com.google.common.collect.ImmutableCollection
SPLITERATOR_CHARACTERISTICS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
(package private) boolean
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.iterator()
Returns an unmodifiable iterator across the elements in this collection.int
size()
(package private) Object
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, asList, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, stream, toArray
-
Field Details
-
multimap
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
EntryCollection
EntryCollection(ImmutableMultimap<K, V> multimap)
-
-
Method Details
-
iterator
Description copied from class:ImmutableCollection
Returns an unmodifiable iterator across the elements in this collection. -
isPartialView
boolean isPartialView()Description copied from class:ImmutableCollection
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods. This is generally used to determine whethercopyOf
implementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialView
in classImmutableCollection<Map.Entry<K,
V>>
-
size
public int size()- Specified by:
size
in interfaceCollection<K>
- Specified by:
size
in classAbstractCollection<Map.Entry<K,
V>>
-
contains
- Specified by:
contains
in interfaceCollection<K>
- Specified by:
contains
in classImmutableCollection<Map.Entry<K,
V>>
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classImmutableCollection<Map.Entry<K,
V>>
-