Annotation Type | Description |
---|---|
OdinCustomAdapter |
Define a custom adapter for a field, useful if the field type has another adapter registered in Odin but a field need specific treatment.
If the field value is an implementation of the field type and the implementation type also have an adapter registered in Odin, this custom adapter is forced and still used. Like standard Odin adapter, this adapter cannot be used with primitive and array type. |
OdinField |
Change the name of a field in Odin or add a comments that are write before the field by the default object adapter.
Renamed field is only accessible by her new name in ObjectType , so : |
OdinMapAsList |
If a field is a
Map and the key of the map is inside values ( in a field ), you can write map as list of these values, so a map : |
OdinReadTo |
Say to the default object adapter to use
OdinReader.readTo(Object) instead of OdinReader.readTyped(Type) in order to keep the same
object instance. |