Friday, 9 August 2013

Cast Unknown Object to a HashMap

Cast Unknown Object to a HashMap

Having a little problem getting this to work with reflections or
otherwise. I am trying to build a method that will receive some type of
object and convert that object to a HashMap. It may receive a HashMap or
it may receive an Object with getter/setter properties. Or optionally just
get the key value pairs of the object.

No comments:

Post a Comment