Package com.google.common.collect
Class ImmutableMapEntrySet.RegularEntrySet<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.ImmutableMapEntrySet<K,V>
-
- com.google.common.collect.ImmutableMapEntrySet.RegularEntrySet<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:
- ImmutableMapEntrySet<K,V>
static final class ImmutableMapEntrySet.RegularEntrySet<K,V> extends ImmutableMapEntrySet<K,V>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableMapEntrySet
ImmutableMapEntrySet.RegularEntrySet<K,V>
-
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 ImmutableList<java.util.Map.Entry<K,V>>
entries
private ImmutableMap<K,V>
map
-
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 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class com.google.common.collect.ImmutableMapEntrySet
contains, hashCode, isHashCodeFast, isPartialView, size, writeReplace
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashFloodingDetected, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
map
private final transient ImmutableMap<K,V> map
-
entries
private final transient ImmutableList<java.util.Map.Entry<K,V>> entries
-
-
Constructor Detail
-
RegularEntrySet
RegularEntrySet(ImmutableMap<K,V> map, java.util.Map.Entry<K,V>[] entries)
-
RegularEntrySet
RegularEntrySet(ImmutableMap<K,V> map, ImmutableList<java.util.Map.Entry<K,V>> entries)
-
-
Method Detail
-
map
ImmutableMap<K,V> map()
- Specified by:
map
in classImmutableMapEntrySet<K,V>
-
copyIntoArray
int copyIntoArray(java.lang.Object[] dst, int offset)
Description copied from class:ImmutableCollection
Copies the contents of this immutable collection into the specified array at the specified offset. Returnsoffset + size()
.- Overrides:
copyIntoArray
in classImmutableCollection<java.util.Map.Entry<K,V>>
-
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.
-
spliterator
public java.util.Spliterator<java.util.Map.Entry<K,V>> spliterator()
- Specified by:
spliterator
in interfacejava.util.Collection<K>
- Specified by:
spliterator
in interfacejava.lang.Iterable<K>
- Specified by:
spliterator
in interfacejava.util.Set<K>
- Overrides:
spliterator
in classImmutableCollection<java.util.Map.Entry<K,V>>
-
createAsList
ImmutableList<java.util.Map.Entry<K,V>> createAsList()
- Overrides:
createAsList
in classImmutableSet<java.util.Map.Entry<K,V>>
-
-