Advertisement

05.06.2008 at 09:44AM PDT, ID: 23380077 | Points: 500
[x]
Attachment Details

Manipulate HashMap's Keys

Hi ,

I have a requirement like this :
(1) I have a HashMap , whose keys are boolean values to indicate whether value is selected or not , and values are a class objects(having fields like name,addressLine1). Now these 2 fields (name  and addressLine1 are the attributs of another class object whose collection I will display on screen.
i.e. scenario is display Object1 with it's details along with List of Object2 which lies in Object1
(2) Now , I have crated the HashMap . My logic to cater my need is , I will iterate over this HashMap , see
if key is false(meaning not selected and hence to be selected)  , populate Object1 with respective details from this HashMap values , and set the same Key as false(so that future iteration takes care of this ....)
How can I modify HashMap keys ?
(Note: Willhave each such Object1s as unique for each user and hence not created thsi HashMap as static)
Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: gaurav6281
Question Asked On: 05.06.2008
Participating Experts: 2
Points: 500
Views: 0
Translate:
Loading Advertisement...
05.06.2008 at 09:45AM PDT, ID: 21508869

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 09:51AM PDT, ID: 21508918

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 09:56AM PDT, ID: 21508971

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 10:19AM PDT, ID: 21509176

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 10:23AM PDT, ID: 21509202

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 10:33AM PDT, ID: 21509281

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 10:45AM PDT, ID: 21509375

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 10:49AM PDT, ID: 21509410

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 11:00AM PDT, ID: 21509494

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 11:09AM PDT, ID: 21509560

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 11:25AM PDT, ID: 21509660

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 11:28AM PDT, ID: 21509681

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.06.2008 at 10:28PM PDT, ID: 21513359

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
05.07.2008 at 12:08AM PDT, ID: 21513739

Rank: Genius

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
20080236-EE-VQP-29 / EE_QW_2_20070628