This class is a protobuf implementation detail. Users shouldn't use this class directly.
| Modifier and Type | Field and Description |
|---|---|
| private static final MapFieldLite | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <K, V> int | |
| private static int | |
| private static void | |
| public void | clear()
Overrides java. Implements java. |
| private static Object | |
| pack-priv static <K, V> Map | |
| public static <K, V> MapFieldLite | |
| private void | |
| public Set | entrySet()
Overrides java. Implements java. Set view of the mappings contained in this map.
|
| private static boolean | |
| pack-priv static <K, V> boolean | |
| public boolean | equals(Object
object to be compared for equality with this map object)Overrides java. Implements java. |
| public int | hashCode()
Overrides java. Implements java. |
| public boolean | |
| public void | |
| public void | |
| public MapFieldLite | |
| public V | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Overrides java. Implements java. |
| public V | |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map m)Overrides java. Implements java. |
| public V | remove(Object
key whose mapping is to be removed from the map key)Overrides java. Implements java. |
| EMPTY_MAP_FIELD | back to summary |
|---|---|
private static final MapFieldLite<K, V> EMPTY_MAP_FIELD
| |
| isMutable | back to summary |
|---|---|
| private boolean isMutable | |
| MapFieldLite | back to summary |
|---|---|
| private MapFieldLite() | |
| MapFieldLite | back to summary |
|---|---|
| private MapFieldLite(Map<K, V> mapData) | |
| calculateHashCodeForMap | back to summary |
|---|---|
| pack-priv static <K, V> int calculateHashCodeForMap(Map<K, V> a) Calculates the hash code for a | |
| calculateHashCodeForObject | back to summary |
|---|---|
| private static int calculateHashCodeForObject(Object a) | |
| checkForNullKeysAndValues | back to summary |
|---|---|
| private static void checkForNullKeysAndValues(Map<?, ?> m) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| copy | back to summary |
|---|---|
| private static Object copy(Object object) | |
| copy | back to summary |
|---|---|
| pack-priv static <K, V> Map Makes a deep copy of a
| |
| emptyMapField | back to summary |
|---|---|
| public static <K, V> MapFieldLite Returns an singleton immutable empty MapFieldLite instance.
| |
| ensureMutable | back to summary |
|---|---|
| private void ensureMutable() | |
| entrySet | back to summary |
|---|---|
| public Set Overrides java. Implements java. Doc from java. Returns a
| |
| equals | back to summary |
|---|---|
| private static boolean equals(Object a, Object b) | |
| equals | back to summary |
|---|---|
| pack-priv static <K, V> boolean equals(Map<K, V> a, Map<K, V> b) Checks whether two | |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Implements java. Checks whether two map fields are equal.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this map. The hash code of a map is
defined to be the sum of the hash codes of each entry in the map's
| |
| isMutable | back to summary |
|---|---|
| public boolean isMutable() Returns whether this field can be modified. | |
| makeImmutable | back to summary |
|---|---|
| public void makeImmutable() Makes this field immutable. All subsequent modifications will throw an | |
| mergeFrom | back to summary |
|---|---|
| public void mergeFrom(MapFieldLite<K, V> other) | |
| mutableCopy | back to summary |
|---|---|
| public MapFieldLite Returns a deep copy of this map field. | |
| put | back to summary |
|---|---|
| public V put(K key, V value) Overrides java. Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| put | back to summary |
|---|---|
| public V put(Map. | |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends K, ? extends V> m) Overrides java. Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling | |
| remove | back to summary |
|---|---|
| public V remove(Object key) Overrides java. Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns. | |