java - Why google-collections AbstractMultimap class use transient keyword for member variable? -


https://code.google.com/p/google-collections/source/browse/trunk/src/com/google/common/collect/abstractmultimap.java?r=117

abstractmultimap implements serializable.

in eyes actual datas saved map , totalsize variables.

but both variables declared transient keyword.

this fact means there's no serialization right?

private transient map<k, collection<v>> map; private transient int totalsize;  

this fact means there's no serialization right?

no.

it means fields not serialized default serialization mechanism. state being serialized in writeobject() method ... of child class.


Comments

Popular posts from this blog

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -