JAXB
does not allow you to undo existing xml structures in HashMap
if they are not quite as JAXB
expects them.
JAXB
does a great job of handling, for example. LinkedList
and fill them out.
I was thinking of creating an interface using the getKey()
method and wrapping around the HashMap
, taking all the objects that implement this interface. The shell can then use the getKey()
method for all key-related map functions. After that, the shell can easily implement the Collection
or List
interface.
Since this idea does not seem innovative to me, I assume that it already exists in some kind of package, but I do not understand it correctly ... Can someone please name a good library that can do it or do it I have to do it?
source share