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