@GwtCompatible(emulated=true) private static final class RegularImmutableMap.KeySet<K,V> extends IndexedImmutableSet<K>
| Modifier and Type | Class and Description |
|---|---|
private static class |
RegularImmutableMap.KeySet.SerializedForm<K> |
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>| Modifier and Type | Field and Description |
|---|---|
private RegularImmutableMap<K,V> |
map |
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS| Constructor and Description |
|---|
KeySet(RegularImmutableMap<K,V> map) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object object) |
(package private) K |
get(int index) |
(package private) boolean |
isPartialView()
Returns
true if this immutable collection's implementation contains references to
user-created objects that aren't accessible via this collection's methods. |
int |
size() |
(package private) java.lang.Object |
writeReplace() |
copyIntoArray, createAsList, forEach, iterator, spliteratorasList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, equals, hashCode, hashFloodingDetected, isHashCodeFast, maxRunBeforeFallback, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSetadd, addAll, clear, remove, removeAll, removeIf, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitprivate final RegularImmutableMap<K,V> map
KeySet(RegularImmutableMap<K,V> map)
K get(int index)
get in class IndexedImmutableSet<K>public boolean contains(java.lang.Object object)
contains in interface java.util.Collection<K>contains in interface java.util.Set<K>contains in class ImmutableCollection<K>boolean isPartialView()
ImmutableCollectiontrue 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 whether copyOf implementations should make an explicit copy to avoid
memory leaks.isPartialView in class ImmutableCollection<K>public int size()
@GwtIncompatible java.lang.Object writeReplace()
writeReplace in class ImmutableSet<K>