Section Maps
Config sections can be retrieved in-bulk using
{@link oaj.config.Config#getSectionAsMap(String)}.
// Example config file
[MyAddress]
street = 123 Main Street
city = Anywhere
state = NY
zip = 12345
// Example usage
Config c = Config.create("MyConfig.cfg").build();
ObjectMap m = c.getSectionAsMap("MyAddress");
String street = m.getString("street");
String city = m.getString("city");
String state = m.getString("state");
int zip = m.getInt("zip");
Maps created this way are snapshot copies of the section at the time of the method call.