Package com.google.common.collect
Class ImmutableMapEntrySet<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>
- All Implemented Interfaces:
Serializable
,Iterable<Map.Entry<K,
,V>> Collection<Map.Entry<K,
,V>> Set<Map.Entry<K,
V>>
- Direct Known Subclasses:
ImmutableMapEntrySet.RegularEntrySet
,RegularImmutableBiMap.Inverse.InverseEntrySet
entrySet()
implementation for ImmutableMap
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
(package private) static final class
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.CachingAsList<E>, ImmutableSet.Indexed<E>
-
Field Summary
Fields inherited from class com.google.common.collect.ImmutableSet
MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
(package private) boolean
Returnstrue
if thehashCode()
method runs quickly.(package private) boolean
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.(package private) abstract ImmutableMap
<K, V> map()
private void
readObject
(ObjectInputStream stream) int
size()
(package private) Object
Methods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList, createAsList
Methods inherited from class com.google.common.collect.ImmutableSet
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, iterator, of, of, of, of, of, of, of, toImmutableSet
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, 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
-
Constructor Details
-
ImmutableMapEntrySet
ImmutableMapEntrySet()
-
-
Method Details
-
map
-
size
public int size() -
contains
-
isPartialView
boolean isPartialView()Description copied from class:ImmutableCollection
Returnstrue
if this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods. This is generally used to determine whethercopyOf
implementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialView
in classImmutableCollection<Map.Entry<K,
V>>
-
isHashCodeFast
boolean isHashCodeFast()Description copied from class:ImmutableSet
Returnstrue
if thehashCode()
method runs quickly.- Overrides:
isHashCodeFast
in classImmutableSet<Map.Entry<K,
V>>
-
hashCode
public int hashCode() -
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classImmutableSet.CachingAsList<Map.Entry<K,
V>>
-
readObject
- Throws:
InvalidObjectException
-