com.adgear.anoa.read.ProtobufMapReader Maven / Gradle / Ivy
package com.adgear.anoa.read;
import com.google.protobuf.Descriptors;
import com.google.protobuf.Message;
import com.adgear.anoa.AnoaJacksonTypeException;
import com.fasterxml.jackson.core.JsonParser;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
class ProtobufMapReader extends AbstractReader> {
final Descriptors.FieldDescriptor keyDescriptor;
final Descriptors.FieldDescriptor valueDescriptor;
final Message.Builder mapEntryBuilder;
final MapReader mapReader;
ProtobufMapReader(Descriptors.FieldDescriptor keyDescriptor,
Descriptors.FieldDescriptor valueDescriptor,
Message.Builder mapEntryBuilder,
AbstractReader> valueElementReader) {
this.mapReader = new MapReader(valueElementReader);
this.mapEntryBuilder = mapEntryBuilder.clone().clear();
this.keyDescriptor = keyDescriptor;
this.valueDescriptor = valueDescriptor;
}
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy