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<E>
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 classNested 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 TypeMethodDescriptionbooleaninthashCode()(package private) booleanReturnstrueif thehashCode()method runs quickly.(package private) booleanReturnstrueif 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 voidreadObject(ObjectInputStream stream) intsize()(package private) ObjectMethods inherited from class com.google.common.collect.ImmutableSet.CachingAsList
asList, createAsListMethods inherited from class com.google.common.collect.ImmutableSet
builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, iterator, of, of, of, of, of, of, of, toImmutableSetMethods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, 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
-
Constructor Details
-
ImmutableMapEntrySet
ImmutableMapEntrySet()
-
-
Method Details
-
map
-
size
public int size() -
contains
-
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<Map.Entry<K,V>>
-
isHashCodeFast
boolean isHashCodeFast()Description copied from class:ImmutableSetReturnstrueif thehashCode()method runs quickly.- Overrides:
isHashCodeFastin classImmutableSet<Map.Entry<K,V>>
-
hashCode
public int hashCode() -
writeReplace
Object writeReplace()- Overrides:
writeReplacein classImmutableSet<Map.Entry<K,V>>
-
readObject
- Throws:
InvalidObjectException
-