You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Final fields can now be serialized and deserialized.
Features
Simple serialization of Java objects into a DataOutput
Produces very little overhead over the actual raw data contained in a serialized object
Serialization of primitive Java types, Strings, Lists, Sets, Maps and Class objects built-in and optimized
Supports inheritance and composition of serializable types
Supports custom readers/writers for specific classes to reduce overhead or speed up serialization even further
Limitations
Does not allow cycles in the object graph to be serialized
The serializer needs to know the serializable classes beforehand
No versioning of serializable classes (assumes sender and receiver of serializable data have compatible versions of classes)
No support for array types yet (use collections instead)
Fields containing collections have to be declared as their interface types (i.e. "List<...>" instead of "ArrayList<...>", which is good practice anyway)