Package com.google.common.collect
Class RegularImmutableMap.KeySet<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.IndexedImmutableSet<K>
-
- com.google.common.collect.RegularImmutableMap.KeySet<K,V>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<K>,java.util.Collection<K>,java.util.Set<K>
- Enclosing class:
- RegularImmutableMap<K,V>
@GwtCompatible(emulated=true) private static final class RegularImmutableMap.KeySet<K,V> extends IndexedImmutableSet<K>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classRegularImmutableMap.KeySet.SerializedForm<K>-
Nested classes/interfaces inherited from class com.google.common.collect.ImmutableSet
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
-
-
Field Summary
Fields Modifier and Type Field Description private RegularImmutableMap<K,V>map-
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 KeySet(RegularImmutableMap<K,V> map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(java.lang.Object object)(package private) Kget(int index)(package private) booleanisPartialView()Returnstrueif this immutable collection's implementation contains references to user-created objects that aren't accessible via this collection's methods.intsize()(package private) java.lang.ObjectwriteReplace()-
Methods inherited from class com.google.common.collect.IndexedImmutableSet
copyIntoArray, createAsList, forEach, iterator, spliterator
-
Methods inherited from class com.google.common.collect.ImmutableSet
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, hashFloodingDetected, isHashCodeFast, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet
-
Methods inherited from class com.google.common.collect.ImmutableCollection
add, addAll, clear, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, toArray, toArray
-
-
-
-
Field Detail
-
map
private final RegularImmutableMap<K,V> map
-
-
Constructor Detail
-
KeySet
KeySet(RegularImmutableMap<K,V> map)
-
-
Method Detail
-
get
K get(int index)
- Specified by:
getin classIndexedImmutableSet<K>
-
contains
public boolean contains(java.lang.Object object)
- Specified by:
containsin interfacejava.util.Collection<K>- Specified by:
containsin interfacejava.util.Set<K>- Specified by:
containsin classImmutableCollection<K>
-
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<K>
-
size
public int size()
-
writeReplace
@GwtIncompatible java.lang.Object writeReplace()
- Overrides:
writeReplacein classImmutableSet<K>
-
-