Package com.google.common.collect
Class ImmutableSetMultimap.EntrySet<K,V>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- com.google.common.collect.ImmutableCollection<E>
-
- com.google.common.collect.ImmutableSet<java.util.Map.Entry<K,V>>
-
- com.google.common.collect.ImmutableSetMultimap.EntrySet<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<java.util.Map.Entry<K,V>>
,java.util.Collection<java.util.Map.Entry<K,V>>
,java.util.Set<java.util.Map.Entry<K,V>>
- Enclosing class:
- ImmutableSetMultimap<K,V>
private static final class ImmutableSetMultimap.EntrySet<K,V> extends ImmutableSet<java.util.Map.Entry<K,V>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
-
-
Field Summary
Fields Modifier and Type Field Description private ImmutableSetMultimap<K,V>
multimap
-
Fields inherited from class com.google.common.collect.ImmutableSet
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
-
Constructor Summary
Constructors Constructor Description EntrySet(ImmutableSetMultimap<K,V> multimap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Object object)
(package private) boolean
isPartialView()
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.UnmodifiableIterator<java.util.Map.Entry<K,V>>
iterator()
Returns an unmodifiable iterator across the elements in this collection.int
size()
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, createAsList, equals, hashCode, hashFloodingDetected, isHashCodeFast, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet, writeReplace
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray
-
-
-
-
Field Detail
-
multimap
private final transient ImmutableSetMultimap<K,V> multimap
-
-
Constructor Detail
-
EntrySet
EntrySet(ImmutableSetMultimap<K,V> multimap)
-
-
Method Detail
-
contains
public boolean contains(java.lang.Object object)
-
size
public int size()
-
iterator
public UnmodifiableIterator<java.util.Map.Entry<K,V>> 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<java.util.Map.Entry<K,V>>
-
-