Package com.google.common.collect
Class ImmutableMapEntrySet.RegularEntrySet<K,V>
java.lang.Object
java.util.AbstractCollection<Map.Entry<K,V>>
com.google.common.collect.ImmutableCollection<Map.Entry<K,V>>
com.google.common.collect.ImmutableSet<Map.Entry<K,V>>
com.google.common.collect.ImmutableSet.CachingAsList<Map.Entry<K,V>>
com.google.common.collect.ImmutableMapEntrySet<K,V>
com.google.common.collect.ImmutableMapEntrySet.RegularEntrySet<K,V>
- All Implemented Interfaces:
Serializable
,Iterable<Map.Entry<K,
,V>> Collection<Map.Entry<K,
,V>> Set<Map.Entry<K,
V>>
- Enclosing class:
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.CachingAsList<E>, ImmutableSet.Indexed<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ImmutableList
<Map.Entry<K, V>> private final ImmutableMap
<K, V> Fields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
Constructor Summary
ConstructorsConstructorDescriptionRegularEntrySet
(ImmutableMap<K, V> map, ImmutableList<Map.Entry<K, V>> entries) RegularEntrySet
(ImmutableMap<K, V> map, Map.Entry<K, V>[] entries) -
Method Summary
Modifier and TypeMethodDescription(package private) int
copyIntoArray
(Object[] dst, int offset) Copies the contents of this immutable collection into the specified array at the specified offset.(package private) ImmutableList
<Map.Entry<K, V>> void
iterator()
Returns an unmodifiable iterator across the elements in this collection.(package private) ImmutableMap
<K, V> map()
(package private) Object
Methods inherited from class com.google.common.collect.ImmutableMapEntrySet
contains, hashCode, isHashCodeFast, isPartialView, size
Methods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList
Methods inherited from class com.google.common.collect.ImmutableSet
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, of, of, of, of, of, of, of, toImmutableSet
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Field Details
-
map
-
entries
-
-
Constructor Details
-
RegularEntrySet
-
RegularEntrySet
RegularEntrySet(ImmutableMap<K, V> map, ImmutableList<Map.Entry<K, V>> entries)
-
-
Method Details
-
map
ImmutableMap<K,V> map()- Specified by:
map
in classImmutableMapEntrySet<K,
V>
-
copyIntoArray
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<Map.Entry<K,
V>>
-
iterator
Description copied from class:ImmutableCollection
Returns an unmodifiable iterator across the elements in this collection. -
spliterator
- Specified by:
spliterator
in interfaceCollection<K>
- Specified by:
spliterator
in interfaceIterable<K>
- Specified by:
spliterator
in interfaceSet<K>
- Overrides:
spliterator
in classImmutableCollection<Map.Entry<K,
V>>
-
forEach
-
createAsList
ImmutableList<Map.Entry<K,V>> createAsList()- Overrides:
createAsList
in classImmutableSet.CachingAsList<Map.Entry<K,
V>>
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classImmutableMapEntrySet<K,
V>
-