K - the key typeV - the value typepublic final class MapFieldLite<K,V> extends LinkedHashMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 限定符和类型 | 方法和说明 |
|---|---|
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()
Checks if is mutable.
|
void |
makeImmutable()
Makes this field immutable.
|
void |
mergeFrom(MapFieldLite<K,V> other)
Merge from.
|
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)
Put.
|
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
containsValue, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, valuesclone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, sizetoStringcompute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, sizepublic static <K,V> MapFieldLite<K,V> emptyMapField()
K - the key typeV - the value typepublic void mergeFrom(MapFieldLite<K,V> other)
other - the otherpublic boolean equals(Object object)
public MapFieldLite<K,V> mutableCopy()
public void makeImmutable()
UnsupportedOperationException.public boolean isMutable()
Copyright © 2022 Baidu, Inc.. All rights reserved.