public class ConfigurationSectionContainer extends AbstractCollection<ConfigurationSection> implements Collection<ConfigurationSection>, Serializable
ConfigurationWithSections
,
Serialized FormConstructor and Description |
---|
ConfigurationSectionContainer() |
Modifier and Type | Method and Description |
---|---|
boolean |
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() |
int |
size() |
String |
toString() |
addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, parallelStream, remove, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray
public boolean add(ConfigurationSection section)
add
in interface Collection<ConfigurationSection>
add
in class AbstractCollection<ConfigurationSection>
true
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>
iterator
in interface Collection<ConfigurationSection>
iterator
in class AbstractCollection<ConfigurationSection>
public int size()
size
in interface Collection<ConfigurationSection>
size
in class AbstractCollection<ConfigurationSection>
public String toString()
toString
in class AbstractCollection<ConfigurationSection>
cache2k API documentation. Copyright © 2000–2019 headissue GmbH, Munich.