All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javagen.readMap Maven / Gradle / Ivy

The newest version!
TMap _map_{{name}} = _iprot.readMapBegin();
{{name}} = new HashMap<{{keyType}}, {{valueType}}>();
int _i_{{name}} = 0;
{{keyType}} {{keyName}};
{{valueType}} {{valueName}};
while (_i_{{name}} < _map_{{name}}.size) {
{{#keyReadWriteInfo}}
  {{>readValue}}
{{/keyReadWriteInfo}}
{{#valueReadWriteInfo}}
  {{>readValue}}
{{/valueReadWriteInfo}}
  {{name}}.put({{keyName}}, {{valueName}});
  _i_{{name}} += 1;
}
_iprot.readMapEnd();




© 2015 - 2024 Weber Informatics LLC | Privacy Policy