更新しました:-
問題の説明は-
私はこれらのものを保管する必要があります-
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>>();
これよりも良い方法はありますか?