Package com.google.common.collect
Class ImmutableMapEntrySet<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>
-
- 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>>
- Direct Known Subclasses:
ImmutableMapEntrySet.RegularEntrySet
,RegularImmutableBiMap.Inverse.InverseEntrySet
abstract class ImmutableMapEntrySet<K,V> extends ImmutableSet<java.util.Map.Entry<K,V>>
entrySet()
implementation forImmutableMap
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ImmutableMapEntrySet.EntrySetSerializedForm<K,V>
(package private) static class
ImmutableMapEntrySet.RegularEntrySet<K,V>
-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
-
-
Field Summary
-
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 ImmutableMapEntrySet()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
contains(java.lang.Object object)
int
hashCode()
(package private) boolean
isHashCodeFast()
Returnstrue
if thehashCode()
method runs quickly.(package private) boolean
isPartialView()
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()
int
size()
(package private) java.lang.Object
writeReplace()
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, createAsList, equals, hashFloodingDetected, iterator, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray
-
-
-
-
Method Detail
-
map
abstract ImmutableMap<K,V> map()
-
size
public int size()
-
contains
public boolean contains(java.lang.Object object)
-
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<java.util.Map.Entry<K,V>>
-
isHashCodeFast
boolean isHashCodeFast()
Description copied from class:ImmutableSet
Returnstrue
if thehashCode()
method runs quickly.- Overrides:
isHashCodeFast
in classImmutableSet<java.util.Map.Entry<K,V>>
-
hashCode
public int hashCode()
-
writeReplace
java.lang.Object writeReplace()
- Overrides:
writeReplace
in classImmutableSet<java.util.Map.Entry<K,V>>
-
-