Class ConfigSection
-
- All Implemented Interfaces:
public class ConfigSection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
ConfigSection.KeyNotFoundException
-
Field Summary
Fields Modifier and Type Field Description private final Set<String>
keys
private final ConfigurationSection
internalSection
-
Constructor Summary
Constructors Constructor Description ConfigSection(ConfigurationSection internalSection)
-
Method Summary
Modifier and Type Method Description final Set<String>
getKeys()
final ConfigurationSection
getInternalSection()
final Set<ConfigSection>
getSections()
final ConfigSection
getSection(String key)
final ConfigSection
getSectionOrThrow(String key)
final <T extends Any> T
get(String key, ConfigAdapter<T> adapter)
Returns null either if the key does not exist or if the value cannot be converted to the desired type. final <T extends Any> T
get(String key, ConfigAdapter<T> adapter, T defaultValue)
final <T extends Any> T
getOrThrow(String key, ConfigAdapter<T> adapter)
final <T extends Any> Unit
set(String key, T value)
final Unit
merge(ConfigSection other)
-
-
Constructor Detail
-
ConfigSection
ConfigSection(ConfigurationSection internalSection)
-
-
Method Detail
-
getInternalSection
final ConfigurationSection getInternalSection()
-
getSections
final Set<ConfigSection> getSections()
-
getSection
final ConfigSection getSection(String key)
-
getSectionOrThrow
final ConfigSection getSectionOrThrow(String key)
-
get
final <T extends Any> T get(String key, ConfigAdapter<T> adapter)
Returns null either if the key does not exist or if the value cannot be converted to the desired type.
-
getOrThrow
final <T extends Any> T getOrThrow(String key, ConfigAdapter<T> adapter)
-
merge
final Unit merge(ConfigSection other)
-
-
-
-