How would I convert IniPreferences to a Map in Java?
I currently have
public static Map<String, String> configMap;
Ini ini = new Ini(configIni);
java.util.prefs.Preferences prefs = new IniPreferences(ini);
configMap = new HashMap<>();
configMap.put("Version", prefs.node("Settings").get("Version", null));
However this would require me to insert the key for anything added to the ini making it a pain to maintain.
The prefs.node will always be settings however preferably they would be combined into configMap.
How would I automate this?