createMapField<K, V> method

Map<K, V> createMapField <K, V>(int tagNumber, MapFieldInfo<K, V> fi)

Creates a Map representing a map field.

Implementation

Map<K, V> createMapField<K, V>(int tagNumber, MapFieldInfo<K, V> fi) {
  return PbMap<K, V>(fi.keyFieldType, fi.valueFieldType, fi.valueCreator,
      fi.valueOf, fi.enumValues);
}