|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Classes implementing this interface support serialization in a
human-readable format, by storing all relevant fields in a
FieldMap
.
Non-abstract implementations of this interface must support
deserialization by providing a public constructor that accepts a
FieldMap
as single parameter that reads all
relevant field values from the map. There is no way to enforce this
convention (as interfaces cannot contain constructors), but
deserialization via FieldMap.createObject(Class)
will fail when it is violated. Deserialization is based on a constructor
instead of a "restore" or "init" method to allow the deserialization of
immutable objects (whose fields cannot be changed after construction).
Method Summary | |
FieldMap |
storeFields()
Stores all relevant fields of this object in a field map for serialization. |
Method Detail |
public FieldMap storeFields()
FieldMap.createObject(Class)
on the created
field map.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |