public class WireMarshaller<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static Class[] |
UNEXPECTED_FIELDS_PARAMETER_TYPES |
static net.openhft.chronicle.core.ClassLocal<WireMarshaller> |
WIRE_MARSHALLER_CL |
| Constructor and Description |
|---|
WireMarshaller(Class<T> tClass,
net.openhft.chronicle.wire.WireMarshaller.FieldAccess[] fields,
boolean isLeaf) |
| Modifier and Type | Method and Description |
|---|---|
T |
defaultValue() |
static void |
getAllField(Class clazz,
Map<String,Field> map) |
Object |
getField(Object o,
String name) |
boolean |
isEqual(Object o1,
Object o2) |
boolean |
isLeaf() |
static <T> WireMarshaller<T> |
of(Class<T> tClass) |
void |
readMarshallable(T t,
WireIn in,
T defaults,
boolean overwrite) |
void |
reset(T o) |
void |
setField(Object o,
String name,
Object value) |
void |
writeKey(T t,
net.openhft.chronicle.bytes.Bytes bytes) |
void |
writeMarshallable(T t,
net.openhft.chronicle.bytes.Bytes bytes) |
void |
writeMarshallable(T t,
WireOut out) |
void |
writeMarshallable(T t,
WireOut out,
T previous,
boolean copy) |
public static final net.openhft.chronicle.core.ClassLocal<WireMarshaller> WIRE_MARSHALLER_CL
public static final Class[] UNEXPECTED_FIELDS_PARAMETER_TYPES
public WireMarshaller(@NotNull
Class<T> tClass,
@NotNull
net.openhft.chronicle.wire.WireMarshaller.FieldAccess[] fields,
boolean isLeaf)
@NotNull public static <T> WireMarshaller<T> of(@NotNull Class<T> tClass)
public void writeMarshallable(T t, net.openhft.chronicle.bytes.Bytes bytes)
public void writeMarshallable(T t, @NotNull WireOut out, T previous, boolean copy)
public void readMarshallable(T t, @NotNull WireIn in, T defaults, boolean overwrite)
public void writeKey(T t, net.openhft.chronicle.bytes.Bytes bytes)
public Object getField(Object o, String name) throws NoSuchFieldException
NoSuchFieldExceptionpublic void setField(Object o, String name, Object value) throws NoSuchFieldException
NoSuchFieldException@Nullable public T defaultValue()
public void reset(T o)
public boolean isLeaf()
Copyright © 2018. All rights reserved.