private static final class ImmutableSetMultimap.EntrySet<K,V> extends ImmutableSet<java.util.Map.Entry<K,V>>
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
Modifier and Type | Field and Description |
---|---|
private ImmutableSetMultimap<K,V> |
multimap |
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
Constructor and Description |
---|
EntrySet(ImmutableSetMultimap<K,V> multimap) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object object) |
(package private) boolean |
isPartialView()
Returns
true 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() |
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, createAsList, equals, hashCode, hashFloodingDetected, isHashCodeFast, maxRunBeforeFallback, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet, writeReplace
add, addAll, clear, copyIntoArray, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final transient ImmutableSetMultimap<K,V> multimap
EntrySet(ImmutableSetMultimap<K,V> multimap)
public boolean contains(java.lang.Object object)
public int size()
public UnmodifiableIterator<java.util.Map.Entry<K,V>> iterator()
ImmutableCollection
iterator
in interface java.lang.Iterable<java.util.Map.Entry<K,V>>
iterator
in interface java.util.Collection<java.util.Map.Entry<K,V>>
iterator
in interface java.util.Set<java.util.Map.Entry<K,V>>
iterator
in class ImmutableSet<java.util.Map.Entry<K,V>>
boolean isPartialView()
ImmutableCollection
true
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 whether copyOf
implementations should make an explicit copy to avoid
memory leaks.isPartialView
in class ImmutableCollection<java.util.Map.Entry<K,V>>