public final class MapFieldLite<K,V>
extends java.util.LinkedHashMap<K,V>
This class is a protobuf implementation detail. Users shouldn't use this class directly.
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static <K,V> MapFieldLite<K,V> |
emptyMapField()
Returns an singleton immutable empty MapFieldLite instance.
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
boolean |
equals(java.lang.Object object)
Checks whether two map fields are equal.
|
int |
hashCode() |
boolean |
isMutable()
Returns whether this field can be modified.
|
void |
makeImmutable()
Makes this field immutable.
|
void |
mergeFrom(MapFieldLite<K,V> other) |
MapFieldLite<K,V> |
mutableCopy()
Returns a deep copy of this map field.
|
V |
put(K key,
V value) |
V |
put(java.util.Map.Entry<K,V> entry) |
void |
putAll(java.util.Map<? extends K,? extends V> m) |
V |
remove(java.lang.Object key) |
containsValue, forEach, get, getOrDefault, keySet, replaceAll, values
public static <K,V> MapFieldLite<K,V> emptyMapField()
public void mergeFrom(MapFieldLite<K,V> other)
public void clear()
public V remove(java.lang.Object key)
public boolean equals(java.lang.Object object)
public int hashCode()
public MapFieldLite<K,V> mutableCopy()
public void makeImmutable()
UnsupportedOperationException
.public boolean isMutable()