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) intcopyIntoArray(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>> voiditerator()Returns an unmodifiable iterator across the elements in this collection.(package private) ImmutableMap<K, V> map()(package private) ObjectMethods inherited from class com.google.common.collect.ImmutableMapEntrySet
contains, hashCode, isHashCodeFast, isPartialView, sizeMethods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asListMethods inherited from class com.google.common.collect.ImmutableSet
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, of, of, of, of, of, of, of, toImmutableSetMethods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArrayMethods inherited from class java.util.AbstractCollection
containsAll, isEmpty, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
mapin classImmutableMapEntrySet<K,V>
-
copyIntoArray
Description copied from class:ImmutableCollectionCopies the contents of this immutable collection into the specified array at the specified offset. Returnsoffset + size().- Overrides:
copyIntoArrayin classImmutableCollection<Map.Entry<K,V>>
-
iterator
Description copied from class:ImmutableCollectionReturns an unmodifiable iterator across the elements in this collection. -
spliterator
- Specified by:
spliteratorin interfaceCollection<K>- Specified by:
spliteratorin interfaceIterable<K>- Specified by:
spliteratorin interfaceSet<K>- Overrides:
spliteratorin classImmutableCollection<Map.Entry<K,V>>
-
forEach
-
createAsList
ImmutableList<Map.Entry<K,V>> createAsList()- Overrides:
createAsListin classImmutableSet.CachingAsList<Map.Entry<K,V>>
-
writeReplace
Object writeReplace()- Overrides:
writeReplacein classImmutableMapEntrySet<K,V>
-