0

I have the next HASHMAP. What is the way to get and set data. I don't have very clear the method.

  • PojoAlgoritmoCat is a Class with an ID and a NAME.
  • PojoAlgoritmo is a Class with ID, NAME and CATEGORY_ID.

I don't know how to get the ID from PojoAlgoritmoCat or ID from an element of the List.

HashMap<PojoAlgoritmoCat, List<PojoAlgoritmo>> listDataChild;

Thanks.

Víctor Martín
  • 3,352
  • 7
  • 48
  • 94
  • 1
    all you have to do is ensure class PojoAlgoritmoCat CORRECTLY implements hashcode(), equals(), & compareTo() methods. – Hector Jun 04 '15 at 16:16
  • 1
    this SO answer shows looping through hashmap http://stackoverflow.com/questions/1066589/iterate-through-a-hashmap – Hector Jun 04 '15 at 16:18

0 Answers0