public final class MapFieldLite<K,V> extends LinkedHashMap<K,V>
This class is a protobuf implementation detail. Users shouldn't use this class directly.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static <K,V> MapFieldLite<K,V> |
emptyMapField()
Returns an singleton immutable empty MapFieldLite instance.
|
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(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(Map.Entry<K,V> entry) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
containsValue, get, removeEldestEntry
toString
public static <K,V> MapFieldLite<K,V> emptyMapField()
public void mergeFrom(MapFieldLite<K,V> other)
public void clear()
public boolean equals(Object object)
public int hashCode()
public MapFieldLite<K,V> mutableCopy()
public void makeImmutable()
UnsupportedOperationException
.public boolean isMutable()
Copyright © 2008–2019. All rights reserved.