java - XStream TreeSetConverter -


i'm having problems while trying unmarshall xml valueobjects, because there treesets along way.

i've read necessary implement treesetconverter, in order make work, still don't understand why:

http://x-stream.github.io/faq.html#serialization_implicit_different_type

and i've found sample of treesetconverter:

http://opensourcejavaphp.net/java/xstream/com/thoughtworks/xstream/converters/collections/treesetconverter.java.html

i've read on xstream site implicit collections:

"that collections additional information (e.g. treeset comparator) cannot restored, since comparator omitted @ serialization time".

does mean can't marshall/unmarshall valueobjects treesets?

about treesetconverter:

converts java.util.treeset xml, , serializes associated java.util.comparator. converter assumes elements in xml sorted according comparator.

this similar collectionconverter additional field storing java.util.comparator associated treeset.

anyone knows how this?


Comments

Popular posts from this blog

r - Trouble relying on third party package imports in my package -

Payment information shows nothing in one page checkout page magento -