webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
Inherits com.google.protobuf.MutabilityOracle.
Public Member Functions | |
Map< K, V > | getMap () |
Map< K, V > | getMutableMap () |
void | mergeFrom (MapField< K, V > other) |
void | clear () |
boolean | equals (Object object) |
int | hashCode () |
MapField< K, V > | copy () |
void | makeImmutable () |
boolean | isMutable () |
void | ensureMutable () |
Static Public Member Functions | |
static< K, V > MapField< K, V > | emptyMapField (MapEntry< K, V > defaultEntry) |
static< K, V > MapField< K, V > | newMapField (MapEntry< K, V > defaultEntry) |
Internal representation of map fields in generated messages.
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.
|
inline |
|
inline |
Returns a deep copy of this MapField.
|
inlinestatic |
Returns an immutable empty MapField.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns whether this field can be modified.
|
inline |
Makes this list immutable. All subsequent modifications will throw an UnsupportedOperationException.
|
inline |
|
inlinestatic |
Creates a new mutable empty MapField.