public class MessageAsFieldSchema<T> extends FieldSchema<T>
| Modifier and Type | Field and Description |
|---|---|
protected Getter<T,Object> |
getter |
protected SchemaEx<Object> |
schema |
protected Setter<T,Object> |
setter |
fieldNumber, javaType, name, packed, primitive, protoField, tag, tagSize| Constructor and Description |
|---|
MessageAsFieldSchema(io.protostuff.compiler.model.Field protoField,
PropertyDescriptor propertyDescriptor,
SchemaEx<Object> schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
getAndWriteTo(OutputEx output,
T message) |
int |
mergeFrom(InputEx input,
T message) |
void |
writeTo(OutputEx output,
Object value)
write from map
|
getFieldNumber, getProtoField, isPrimitivepublic MessageAsFieldSchema(io.protostuff.compiler.model.Field protoField,
PropertyDescriptor propertyDescriptor,
SchemaEx<Object> schema)
public final void getAndWriteTo(OutputEx output, T message) throws IOException
getAndWriteTo in class FieldSchema<T>IOExceptionpublic final void writeTo(OutputEx output, Object value) throws IOException
FieldSchemawriteTo in class FieldSchema<T>value - field value, will not be nullIOExceptionpublic final int mergeFrom(InputEx input, T message) throws IOException
mergeFrom in class FieldSchema<T>IOExceptionCopyright © 2017–2019 The Apache Software Foundation. All rights reserved.