public class MapFieldLite<K,V> extends Object
Modifier and Type | Field and Description |
---|---|
static com.google.protobuf.MutabilityOracle |
IMMUTABLE |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
MapFieldLite<K,V> |
copy()
Returns a deep copy of this map field.
|
static <K,V> MapFieldLite<K,V> |
emptyMapField()
Returns an singleton immutable empty MapFieldLite instance.
|
void |
ensureMutable()
Throws an
UnsupportedOperationException if not mutable. |
boolean |
equals(Object object)
Checks whether two map fields are equal.
|
Map<K,V> |
getMap()
Gets the content of this MapField as a read-only Map.
|
Map<K,V> |
getMutableMap()
Gets a mutable Map view of this MapField.
|
int |
hashCode() |
boolean |
isMutable()
Returns whether this field can be modified.
|
void |
makeImmutable()
Makes this field immutable.
|
void |
mergeFrom(MapFieldLite<K,V> other) |
static <K,V> MapFieldLite<K,V> |
newMapField()
Creates a new MapFieldLite instance.
|
public static <K,V> MapFieldLite<K,V> emptyMapField()
public static <K,V> MapFieldLite<K,V> newMapField()
public void mergeFrom(MapFieldLite<K,V> other)
public void clear()
public boolean equals(Object object)
public MapFieldLite<K,V> copy()
public void makeImmutable()
UnsupportedOperationException
.public boolean isMutable()
public void ensureMutable()
UnsupportedOperationException
if not mutable.Copyright © 2008–2015 Google. All rights reserved.