org.infinispan.protostream.impl.UnknownFieldSetImpl Maven / Gradle / Ivy
package org.infinispan.protostream.impl;
import org.infinispan.protostream.RawProtoStreamReader;
import org.infinispan.protostream.RawProtoStreamWriter;
import org.infinispan.protostream.UnknownFieldSet;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import java.nio.ByteBuffer;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.HashMap;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
/**
* {@code UnknownFieldSet} implementation. This class should never be directly instantiated by users.
*
* @author [email protected]
* @since 1.0
*/
final class UnknownFieldSetImpl implements UnknownFieldSet, Externalizable {
// elements of the Deque can be one of : varint, fixed32, fixed64, byte[] or UnknownFieldSetImpl
// this is created lazily
private Map> fields;
public UnknownFieldSetImpl() {
}
/**
* Get an Deque of values for the given field number. A new one is created and added if it does not exist already.
*/
private Deque
© 2015 - 2025 Weber Informatics LLC | Privacy Policy