public class FieldDefinition extends Object
| Constructor and Description |
|---|
FieldDefinition(Field field,
String name,
Serializer serializer,
Class type,
boolean skipIfDefault) |
| Modifier and Type | Method and Description |
|---|---|
Annotation[] |
getHints() |
String |
getName() |
Serializer |
getSerializer() |
Class<?> |
getType() |
Object |
getValue(Object target) |
boolean |
isReadOnly() |
boolean |
isSkipIfDefault() |
void |
read(Object target,
StreamingInput in) |
Object |
read(StreamingInput in) |
void |
set(Object target,
Object value) |
void |
write(Object target,
StreamingOutput stream) |
public FieldDefinition(Field field, String name, Serializer serializer, Class type, boolean skipIfDefault)
public String getName()
public Serializer getSerializer()
public boolean isSkipIfDefault()
public boolean isReadOnly()
public Class<?> getType()
public Object read(StreamingInput in) throws IOException
IOExceptionpublic void read(Object target, StreamingInput in) throws IOException
IOExceptionpublic void set(Object target, Object value) throws IOException
IOExceptionpublic void write(Object target, StreamingOutput stream) throws IOException
IOExceptionpublic Annotation[] getHints()
Copyright © 2017. All rights reserved.