static final class ImmutableMapEntrySet.RegularEntrySet<K,V> extends ImmutableMapEntrySet<K,V>
ImmutableMapEntrySet.RegularEntrySet<K,V>
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>
Modifier and Type | Field and Description |
---|---|
private ImmutableList<java.util.Map.Entry<K,V>> |
entries |
private ImmutableMap<K,V> |
map |
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
Constructor and Description |
---|
RegularEntrySet(ImmutableMap<K,V> map,
ImmutableList<java.util.Map.Entry<K,V>> entries) |
RegularEntrySet(ImmutableMap<K,V> map,
java.util.Map.Entry<K,V>[] entries) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
copyIntoArray(java.lang.Object[] dst,
int offset)
Copies the contents of this immutable collection into the specified array at the specified
offset.
|
(package private) ImmutableList<java.util.Map.Entry<K,V>> |
createAsList() |
void |
forEach(java.util.function.Consumer<? super java.util.Map.Entry<K,V>> action) |
UnmodifiableIterator<java.util.Map.Entry<K,V>> |
iterator()
Returns an unmodifiable iterator across the elements in this collection.
|
(package private) ImmutableMap<K,V> |
map() |
java.util.Spliterator<java.util.Map.Entry<K,V>> |
spliterator() |
contains, hashCode, isHashCodeFast, isPartialView, size, writeReplace
asList
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, of, of, of, of, of, of, of, toImmutableSet
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
private final transient ImmutableMap<K,V> map
private final transient ImmutableList<java.util.Map.Entry<K,V>> entries
RegularEntrySet(ImmutableMap<K,V> map, java.util.Map.Entry<K,V>[] entries)
RegularEntrySet(ImmutableMap<K,V> map, ImmutableList<java.util.Map.Entry<K,V>> entries)
ImmutableMap<K,V> map()
map
in class ImmutableMapEntrySet<K,V>
int copyIntoArray(java.lang.Object[] dst, int offset)
ImmutableCollection
offset + size()
.copyIntoArray
in class ImmutableCollection<java.util.Map.Entry<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>>
public java.util.Spliterator<java.util.Map.Entry<K,V>> spliterator()
spliterator
in interface java.lang.Iterable<java.util.Map.Entry<K,V>>
spliterator
in interface java.util.Collection<java.util.Map.Entry<K,V>>
spliterator
in interface java.util.Set<java.util.Map.Entry<K,V>>
spliterator
in class ImmutableCollection<java.util.Map.Entry<K,V>>
ImmutableList<java.util.Map.Entry<K,V>> createAsList()
createAsList
in class ImmutableSet.CachingAsList<java.util.Map.Entry<K,V>>