This class supports accessing the map field as a Map to be used in generated API and
also supports accessing the field as a List to be used in reflection API. It keeps track
of where the data is currently stored and do necessary conversions between map and list.
This class is a protobuf implementation detail. Users shouldn't use this class directly.
Thread-Safety Note
Read-only access is thread-safe. Users can call getMap() and getList() concurrently in multiple threads. If write-access is needed, all access must be synchronized.
| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class | |
| private static class | |
| private static enum | MapField.StorageMode
Indicates where the data of this map field is currently stored. |
| Modifier and Type | Field and Description |
|---|---|
| private final MapField. | |
| private volatile boolean | |
| private List | |
| private MapField. | |
| private volatile MapField. |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private Message | |
| private MapField. | |
| private List | |
| private void | |
| public MapField | |
| public static <K, V> MapField | |
| public void | ensureMutable()
Implements com. UnsupportedOperationException if not mutable.
|
| public boolean | equals(Object
the reference object with which to compare. object)Overrides java. |
| pack-priv List | |
| public Map | |
| pack-priv Message | getMapEntryMessageDefaultInstance()
Gets the default instance of the message stored in the list view of this map field. |
| pack-priv List | |
| public Map | |
| public int | |
| public boolean | |
| public void | |
| public void | |
| public static <K, V> MapField |