类 MapFieldLite<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
com.baidu.bjf.remoting.protobuf.MapFieldLite<K,V>
- 类型参数:
K- the key typeV- the value type
- 所有已实现的接口:
Serializable,Cloneable,Map<K,V>
Internal representation of map fields in generated lite-runtime messages.
This class is a protobuf implementation detail. Users shouldn't use this class directly.
- 另请参阅:
-
嵌套类概要
从类继承的嵌套类/接口 java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
方法概要
修饰符和类型方法说明voidclear()static <K,V> MapFieldLite<K, V> Returns an singleton immutable empty MapFieldLite instance.entrySet()booleanChecks whether two map fields are equal.inthashCode()booleanChecks if is mutable.voidMakes this field immutable.voidmergeFrom(MapFieldLite<K, V> other) Merge from.Returns a deep copy of this map field.Put.void从类继承的方法 java.util.LinkedHashMap
containsValue, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values从类继承的方法 java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, size从类继承的方法 java.util.AbstractMap
toString从接口继承的方法 java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, size
-
方法详细资料
-
emptyMapField
Returns an singleton immutable empty MapFieldLite instance.- 类型参数:
K- the key typeV- the value type- 返回:
- the map field lite
-
mergeFrom
Merge from.- 参数:
other- the other
-
entrySet
-
clear
public void clear() -
put
-
put
Put.- 参数:
entry- the entry- 返回:
- the v
-
putAll
-
remove
-
equals
Checks whether two map fields are equal. -
hashCode
public int hashCode() -
mutableCopy
Returns a deep copy of this map field.- 返回:
- the map field lite
-
makeImmutable
public void makeImmutable()Makes this field immutable. All subsequent modifications will throw anUnsupportedOperationException. -
isMutable
public boolean isMutable()Checks if is mutable.- 返回:
- true, if is mutable
-