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>
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableCollection
ImmutableCollection.ArrayBasedBuilder<E>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map.Entry<K,V>[]
entries
private ImmutableMap<K,V>
map
-
Fields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE
-
-
Constructor Summary
Constructors Constructor Description 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) 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()
-
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, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, of, of, of, of, of, of, of
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, remove, removeAll, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
map
private final transient ImmutableMap<K,V> map
-
-
Constructor Detail
-
RegularEntrySet
RegularEntrySet(ImmutableMap<K,V> map, java.util.Map.Entry<K,V>[] entries)
-
-
Method Detail
-
map
ImmutableMap<K,V> map()
- Specified by:
map
in classImmutableMapEntrySet<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.
-
createAsList
ImmutableList<java.util.Map.Entry<K,V>> createAsList()
- Overrides:
createAsList
in classImmutableSet<java.util.Map.Entry<K,V>>
-
-