public class ConfigurationSectionContainer extends Object implements Iterable<ConfigurationSection>
ConfigurationWithSections
Constructor and Description |
---|
ConfigurationSectionContainer() |
Modifier and Type | Method and Description |
---|---|
void |
add(ConfigurationSection section)
Add a new configuration section to the container.
|
<T extends ConfigurationSection> |
getSection(Class<T> sectionType)
Retrieve a single section from the container.
|
Iterator<ConfigurationSection> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public void add(ConfigurationSection section)
IllegalArgumentException
- if same type is already present and a singletonpublic <T extends ConfigurationSection> T getSection(Class<T> sectionType)
public Iterator<ConfigurationSection> iterator()
iterator
in interface Iterable<ConfigurationSection>
cache2k API documentation. Copyright © 2000–2017 headissue GmbH, Munich.