Package io.protostuff.runtime
Class RuntimeMapField<T,K,V>
java.lang.Object
io.protostuff.runtime.Field<T>
io.protostuff.runtime.RuntimeMapField<T,K,V>
A runtime field for a
Map
. Allows null keys and values.-
Field Summary
FieldsModifier and TypeFieldDescriptionSince we cannot inherit multiple classes, we create this Map schema simply to delegate to the wrapping class' abstract methods. -
Constructor Summary
ConstructorsConstructorDescriptionRuntimeMapField
(WireFormat.FieldType type, int number, String name, Tag tag, MapSchema.MessageFactory messageFactory) -
Method Summary
-
Field Details
-
schema
Since we cannot inherit multiple classes, we create this Map schema simply to delegate to the wrapping class' abstract methods.
-
-
Constructor Details
-
RuntimeMapField
public RuntimeMapField(WireFormat.FieldType type, int number, String name, Tag tag, MapSchema.MessageFactory messageFactory)
-
-
Method Details
-
kFrom
- Throws:
IOException
-
vPutFrom
protected abstract void vPutFrom(Input input, MapSchema.MapWrapper<K, V> wrapper, K key) throws IOException- Throws:
IOException
-
kTo
protected abstract void kTo(Output output, int fieldNumber, K key, boolean repeated) throws IOException - Throws:
IOException
-
vTo
protected abstract void vTo(Output output, int fieldNumber, V value, boolean repeated) throws IOException - Throws:
IOException
-
kTransfer
protected abstract void kTransfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException - Throws:
IOException
-
vTransfer
protected abstract void vTransfer(Pipe pipe, Input input, Output output, int number, boolean repeated) throws IOException - Throws:
IOException
-