abstract class ImmutableMapEntrySet<K,V> extends ImmutableSet<java.util.Map.Entry<K,V>>
entrySet()
implementation for ImmutableMap
.Modifier and Type | Class and Description |
---|---|
private static class |
ImmutableMapEntrySet.EntrySetSerializedForm<K,V> |
(package private) static class |
ImmutableMapEntrySet.RegularEntrySet<K,V> |
ImmutableSet.Builder<E>, ImmutableSet.Indexed<E>
HASH_FLOODING_FPP, MAX_RUN_MULTIPLIER, MAX_TABLE_SIZE, SPLITERATOR_CHARACTERISTICS
Constructor and Description |
---|
ImmutableMapEntrySet() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(java.lang.Object object) |
int |
hashCode() |
(package private) boolean |
isHashCodeFast()
Returns
true if the hashCode() method runs quickly. |
(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. |
(package private) abstract ImmutableMap<K,V> |
map() |
int |
size() |
(package private) java.lang.Object |
writeReplace() |
asList, builder, builderWithExpectedSize, chooseTableSize, copyOf, copyOf, copyOf, copyOf, createAsList, equals, hashFloodingDetected, iterator, of, of, of, of, of, of, of, rebuildHashTable, toImmutableSet
add, addAll, clear, copyIntoArray, internalArray, internalArrayEnd, internalArrayStart, remove, removeAll, removeIf, retainAll, spliterator, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
abstract ImmutableMap<K,V> map()
public int size()
public boolean contains(java.lang.Object object)
boolean isPartialView()
ImmutableCollection
true
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<java.util.Map.Entry<K,V>>
boolean isHashCodeFast()
ImmutableSet
true
if the hashCode()
method runs quickly.isHashCodeFast
in class ImmutableSet<java.util.Map.Entry<K,V>>
public int hashCode()
java.lang.Object writeReplace()
writeReplace
in class ImmutableSet<java.util.Map.Entry<K,V>>