Package com.google.protobuf
Class MapFieldSchemaFull
- java.lang.Object
-
- com.google.protobuf.MapFieldSchemaFull
-
- All Implemented Interfaces:
MapFieldSchema
final class MapFieldSchemaFull extends java.lang.Object implements MapFieldSchema
-
-
Constructor Summary
Constructors Constructor Description MapFieldSchemaFull()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<?,?>forMapData(java.lang.Object mapField)Returns the map data for read.MapEntryLite.Metadata<?,?>forMapMetadata(java.lang.Object mapDefaultEntry)Returns the metadata from a default entry.java.util.Map<?,?>forMutableMapData(java.lang.Object mapField)Returns the map data for mutation.intgetSerializedSize(int number, java.lang.Object mapField, java.lang.Object mapDefaultEntry)Compute the serialized size for the map with a given field number.private static <K,V>
intgetSerializedSizeFull(int number, java.lang.Object mapField, java.lang.Object defaultEntryObject)booleanisImmutable(java.lang.Object mapField)Whether toImmutable() has been called on this map field.java.lang.ObjectmergeFrom(java.lang.Object destMapField, java.lang.Object srcMapField)MergessrcMapFieldintodestMapField, and returns the merged instance.private static <K,V>
java.lang.ObjectmergeFromFull(java.lang.Object destMapField, java.lang.Object srcMapField)java.lang.ObjectnewMapField(java.lang.Object mapDefaultEntry)Returns a new instance of the map field given a map default entry.java.lang.ObjecttoImmutable(java.lang.Object mapField)Returns an immutable instance of the map field.
-
-
-
Method Detail
-
forMutableMapData
public java.util.Map<?,?> forMutableMapData(java.lang.Object mapField)
Description copied from interface:MapFieldSchemaReturns the map data for mutation.- Specified by:
forMutableMapDatain interfaceMapFieldSchema
-
forMapData
public java.util.Map<?,?> forMapData(java.lang.Object mapField)
Description copied from interface:MapFieldSchemaReturns the map data for read.- Specified by:
forMapDatain interfaceMapFieldSchema
-
isImmutable
public boolean isImmutable(java.lang.Object mapField)
Description copied from interface:MapFieldSchemaWhether toImmutable() has been called on this map field.- Specified by:
isImmutablein interfaceMapFieldSchema
-
toImmutable
public java.lang.Object toImmutable(java.lang.Object mapField)
Description copied from interface:MapFieldSchemaReturns an immutable instance of the map field. It may make the parameter immutable and return the parameter, or create an immutable copy. The status of the parameter after the call is undefined.- Specified by:
toImmutablein interfaceMapFieldSchema
-
newMapField
public java.lang.Object newMapField(java.lang.Object mapDefaultEntry)
Description copied from interface:MapFieldSchemaReturns a new instance of the map field given a map default entry.- Specified by:
newMapFieldin interfaceMapFieldSchema
-
forMapMetadata
public MapEntryLite.Metadata<?,?> forMapMetadata(java.lang.Object mapDefaultEntry)
Description copied from interface:MapFieldSchemaReturns the metadata from a default entry.- Specified by:
forMapMetadatain interfaceMapFieldSchema
-
mergeFrom
public java.lang.Object mergeFrom(java.lang.Object destMapField, java.lang.Object srcMapField)Description copied from interface:MapFieldSchemaMergessrcMapFieldintodestMapField, and returns the merged instance.- Specified by:
mergeFromin interfaceMapFieldSchema
-
mergeFromFull
private static <K,V> java.lang.Object mergeFromFull(java.lang.Object destMapField, java.lang.Object srcMapField)
-
getSerializedSize
public int getSerializedSize(int number, java.lang.Object mapField, java.lang.Object mapDefaultEntry)Description copied from interface:MapFieldSchemaCompute the serialized size for the map with a given field number.- Specified by:
getSerializedSizein interfaceMapFieldSchema
-
getSerializedSizeFull
private static <K,V> int getSerializedSizeFull(int number, java.lang.Object mapField, java.lang.Object defaultEntryObject)
-
-