类 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 type
V - the value type
所有已实现的接口:
Serializable, Cloneable, Map<K,V>

public final class MapFieldLite<K,V> extends LinkedHashMap<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.
另请参阅:
  • 方法详细资料

    • emptyMapField

      public static <K, V> MapFieldLite<K,V> emptyMapField()
      Returns an singleton immutable empty MapFieldLite instance.
      类型参数:
      K - the key type
      V - the value type
      返回:
      the map field lite
    • mergeFrom

      public void mergeFrom(MapFieldLite<K,V> other)
      Merge from.
      参数:
      other - the other
    • entrySet

      public Set<Map.Entry<K,V>> entrySet()
      指定者:
      entrySet 在接口中 Map<K,V>
      覆盖:
      entrySet 在类中 LinkedHashMap<K,V>
    • clear

      public void clear()
      指定者:
      clear 在接口中 Map<K,V>
      覆盖:
      clear 在类中 LinkedHashMap<K,V>
    • put

      public V put(K key, V value)
      指定者:
      put 在接口中 Map<K,V>
      覆盖:
      put 在类中 HashMap<K,V>
    • put

      public V put(Map.Entry<K,V> entry)
      Put.
      参数:
      entry - the entry
      返回:
      the v
    • putAll

      public void putAll(Map<? extends K,? extends V> m)
      指定者:
      putAll 在接口中 Map<K,V>
      覆盖:
      putAll 在类中 HashMap<K,V>
    • remove

      public V remove(Object key)
      指定者:
      remove 在接口中 Map<K,V>
      覆盖:
      remove 在类中 HashMap<K,V>
    • equals

      public boolean equals(Object object)
      Checks whether two map fields are equal.
      指定者:
      equals 在接口中 Map<K,V>
      覆盖:
      equals 在类中 AbstractMap<K,V>
      参数:
      object - the object
      返回:
      true, if successful
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在接口中 Map<K,V>
      覆盖:
      hashCode 在类中 AbstractMap<K,V>
    • mutableCopy

      public MapFieldLite<K,V> 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 an UnsupportedOperationException.
    • isMutable

      public boolean isMutable()
      Checks if is mutable.
      返回:
      true, if is mutable