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 classImmutableMapEntrySet.EntrySetSerializedForm<K,V>(package private) static classImmutableMapEntrySet.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 booleancontains(java.lang.Object object)inthashCode()(package private) booleanisHashCodeFast()Returnstrueif thehashCode()method runs quickly.(package private) booleanisPartialView()Returnstrueif 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()intsize()(package private) java.lang.ObjectwriteReplace()-
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:ImmutableCollectionReturnstrueif 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 whethercopyOfimplementations should make an explicit copy to avoid memory leaks.- Specified by:
isPartialViewin classImmutableCollection<java.util.Map.Entry<K,V>>
-
isHashCodeFast
boolean isHashCodeFast()
Description copied from class:ImmutableSetReturnstrueif thehashCode()method runs quickly.- Overrides:
isHashCodeFastin classImmutableSet<java.util.Map.Entry<K,V>>
-
hashCode
public int hashCode()
-
writeReplace
java.lang.Object writeReplace()
- Overrides:
writeReplacein classImmutableSet<java.util.Map.Entry<K,V>>
-
-