static final class ImmutableMapEntrySet.RegularEntrySet<K,V> extends ImmutableMapEntrySet<K,V>
ImmutableMapEntrySet.RegularEntrySet<K,V>
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
ImmutableCollection.ArrayBasedBuilder<E>
Modifier and Type | Field and Description |
---|---|
private java.util.Map.Entry<K,V>[] |
entries |
private ImmutableMap<K,V> |
map |
MAX_TABLE_SIZE
Constructor and Description |
---|
RegularEntrySet(ImmutableMap<K,V> map,
java.util.Map.Entry<K,V>[] entries) |
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableList<java.util.Map.Entry<K,V>> |
createAsList() |
UnmodifiableIterator<java.util.Map.Entry<K,V>> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
(package private) ImmutableMap<K,V> |
map() |
contains, hashCode, isHashCodeFast, isPartialView, size, writeReplace
asList, builder, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, of, of, of, of, of, of, of
add, addAll, clear, copyIntoArray, remove, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final transient ImmutableMap<K,V> map
RegularEntrySet(ImmutableMap<K,V> map, java.util.Map.Entry<K,V>[] entries)
ImmutableMap<K,V> map()
map
in class ImmutableMapEntrySet<K,V>
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>>
ImmutableList<java.util.Map.Entry<K,V>> createAsList()
createAsList
in class ImmutableSet<java.util.Map.Entry<K,V>>