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

Popular posts from this blog

Is there an open source WebSockets (JavaScript) XMPP library? -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -

iphone - How do I make a UIPickerView in a UIActionSheet -