Updated:-
Problem Statement is-
I need to store these things-
For ID corresponding to 1, I need to Store these things
- Key CGUID(String CGUID) and its Value, Key SGUID(String SGUID) and its Value, Key PGUID(String PGUID) and its Value, Key UID(String UID) and its Value, Key ALOC(String ALOC) and its Value
For ID corresponding to 2, I need to Store these things
- Key CGUID(String CGUID) and its Value, Key SGUID(String SGUID) and its Value, Key PGUID(String PGUID) and its Value, Key UID(String UID) and its Value, Key ALOC(String ALOC) and its Value
For ID corresponding to 3, I need to Store these things
- Key CGUID(String CGUID) and its Value, Key SGUID(String SGUID) and its Value, Key PGUID(String PGUID) and its Value, Key UID(String UID) and its Value, Key ALOC(String ALOC) and its Value
So for this problem I was thinking to make data structure like this-
public static LinkedHashMap<String, Integer> GUID_VALUES = new LinkedHashMap<String, Integer>();
public static LinkedHashMap<Integer, LinkedHashMap<String, Integer>> GUID_ID_MAPPING = new LinkedHashMap<Integer, LinkedHashMap<String, Integer>>();
Is there any better way to do than this?