protected CommonsConfiguration[] createConfigurations(List<HierarchicalConfiguration<ImmutableNode>> subs) { CommonsConfiguration[] result = new CommonsConfiguration[subs.size()]; for (int i = 0; i < result.length; i++) { result[i] = new CommonsConfiguration((BaseHierarchicalConfiguration) subs.get(i)); } return result; }
public CommonsConfiguration(BaseHierarchicalConfiguration config) { this.config = config; }
public BaseHierarchicalConfiguration getInternalConfiguration() { return config; }
@Override public CommonsConfiguration getChildConfiguration(String child) { return new CommonsConfiguration( hasChildConfiguration(child) ? (BaseHierarchicalConfiguration) config.configurationAt(child) : new CombinedConfiguration()); }