I have to serialize a specific class objects with these attributes:
int fetchCount
String requestMethod
long responeTime
int initialAge
byte[] responseEntity
HttpResponse response
BasicHeader[] headers
BasicHeader header
String name
String value
Locale locale
String language
String country
String variant
BasicHttpParams params IS SERIALIZABLE
BasicStatusLine statusLine
ProtocolVersion protocolVersion IS SERIALIZABLE
int statusCode
String reasonPhrase
All the final objects of each subclass are serializable, then the question is: the serialization/deserialization of all this complex structure is automatic?
HashMapimplementsSerializableso you will not face any problems unlesskeyandvalueinside HashMap also implementsSerializablePrimitives, Arrays, String are Serializable so in second case I see no problem