I need to write a utility program that takes an empty HashMap and any object as arguments and returns a HashMap
public HashMap returnMap(HashMap map,Object parseThisObject){
}
This object contains many objects inside it, and in these objects there are many children, and the line continues.
My utility should be general enough to recursively read all children, until it hits the primitives in each object, puts each of these objects in the hasp map, and returns it back. This is something like a parent who will be there on the map. but individual children will also be present as subsequent entries on the map.
I am new to java analysis and I have looked through some tutorials and examples on the net. Not very sure how to proceed. I believe that this is one of the frequent requirements that experts and professionals could encounter here.
Reach help me with a starting point on this. If there are any open source bean utilities available for this? if yes, please let me know.
Shiva source
share