jQuery in Action, 2nd edition
The moose likes Java in General and the fly likes Accessing the HashMap object Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Accessing the HashMap object " Watch "Accessing the HashMap object " New topic
Author

Accessing the HashMap object

Rashmee Kulkarni
Greenhorn

Joined: Mar 27, 2010
Posts: 18
Hi,
I want to access HashMap object of Class E through class I at runtime.

method of Class I gets called through Class E methods.

I want to change the value of HashMap which is private to class E at rumtime.

I have tried to use reflection,to get the Field(it returns object of Field class,it does not return HashMap object ).But I can not make changes in values in HashMap.

Please guide.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing the HashMap object
 
Similar Threads
Color Parameter
Generic Issue
Sorting Keys(Value Objects) in HashMap
array with elements of different types?
Serializable problem