更新:-
问题陈述是-
我需要储存这些东西——
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
因此,对于这个问题,我正在考虑制作这样的数据结构-
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>>();
还有比这更好的方法吗?