private abstract static class DenseImmutableTable.ImmutableArrayMap<K,V> extends ImmutableMap.IteratorBasedImmutableMap<K,V>
ImmutableMap.Builder<K,V>, ImmutableMap.IteratorBasedImmutableMap<K,V>, ImmutableMap.SerializedForm
Modifier and Type | Field and Description |
---|---|
private int |
size |
EMPTY_ENTRY_ARRAY
Constructor and Description |
---|
ImmutableArrayMap(int size) |
Modifier and Type | Method and Description |
---|---|
(package private) ImmutableSet<K> |
createKeySet() |
(package private) UnmodifiableIterator<java.util.Map.Entry<K,V>> |
entryIterator() |
V |
get(java.lang.Object key) |
(package private) K |
getKey(int index) |
(package private) abstract V |
getValue(int keyIndex) |
private boolean |
isFull() |
(package private) abstract ImmutableMap<K,java.lang.Integer> |
keyToIndex() |
int |
size() |
createEntrySet
asMultimap, builder, checkNoConflict, clear, containsKey, containsValue, copyOf, copyOf, createValues, entryOf, entrySet, equals, hashCode, isEmpty, isHashCodeFast, isPartialView, keyIterator, keySet, of, of, of, of, of, of, put, putAll, remove, toString, values, writeReplace
abstract ImmutableMap<K,java.lang.Integer> keyToIndex()
private boolean isFull()
K getKey(int index)
@Nullable abstract V getValue(int keyIndex)
ImmutableSet<K> createKeySet()
createKeySet
in class ImmutableMap<K,V>
public int size()
public V get(@Nullable java.lang.Object key)
UnmodifiableIterator<java.util.Map.Entry<K,V>> entryIterator()
entryIterator
in class ImmutableMap.IteratorBasedImmutableMap<K,V>