Java Serialization Comparator -
Is it possible to serial a trademark with a comparator ??
I have tested and it has been serial well without a comparator, a treemap, when you add a comparator, it throws an exception.
If I declare the comparator as transient, it still does not work. It works only when I make the map of every tree transient, but in that situation the trees do not sort.
All sections you want to serial are sent to them by java.io.Serializable
should apply the interface. Additionally, each member variable should be serialjob
in your class. In fact, your entire hierarchy should be.
Comments
Post a Comment