M
- the source type (starting data format) of the modelD
- the target type (data format to be produced), usually to send the
data over the wirepublic interface DataWriter<M,D>
DataReader
). In other cases, this
can mean copying properties from load configs into an object format which can
be sent via RPC or RequestFactory.
In contrast with DataReader, this is not expected to have access to any other
context such as a load config, it operates directly on the data as-is. Custom
implementations can provide other context, but none is available by default.Modifier and Type | Method and Description |
---|---|
D |
write(M model)
Converts a source model to its equivalent target type.
|
Copyright © 2020. All rights reserved.