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

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -