ConfigurationSection

open class ConfigurationSection<T : Any>(    val name: String,     val isOptional: SectionOptionality<T>,     val kclass: KClass<T>)

A configuration section that can be added to a SectionedConfiguration.

Note that this is metadata to provide a bridge between a SectionedConfiguration and your data class.

Constructors

Link copied to clipboard
fun <T : Any> ConfigurationSection(    name: String,     isOptional: SectionOptionality<T>,     kclass: KClass<T>)

Properties

Link copied to clipboard
val isOptional: SectionOptionality<T>

Information on the optionality of this section.

Link copied to clipboard
val kclass: KClass<T>

The KClass that corresponds to T.

Link copied to clipboard
val name: String

The name of this section. This is the name that is used in the config file.