public interface Mappable
An object that serializes itself to a Document
and vice versa.
| Modifier and Type | Method and Description |
|---|---|
void |
read(NitriteMapper mapper,
Document document)
Reads the
document and populate all fields of this instance. |
Document |
write(NitriteMapper mapper)
Writes the instance data to a
Document and returns it. |
Document write(NitriteMapper mapper)
Writes the instance data to a Document and returns it.
mapper - the NitriteMapper instance used.void read(NitriteMapper mapper, Document document)
Reads the document and populate all fields of this instance.
mapper - the NitriteMapper instance used.document - the document.