3.7 KiB
3.7 KiB
title
title |
---|
ConfigDelegate - |
//KSpigot/net.axay.kspigot.config/ConfigDelegate
ConfigDelegate
[jvm] class ConfigDelegate<T : Any>(configClass: KClass<T>, file: File, defaultCallback: () -> T?)
See also
jvm
Name | Summary |
---|---|
kSpigotJsonConfig |
Constructors
Name | Summary |
---|---|
ConfigDelegate | [jvm] fun <T : Any> ConfigDelegate(configClass: KClass<T>, file: File, defaultCallback: () -> T?) |
Functions
Name | Summary |
---|---|
equals | [jvm] Content open operator override fun equals(other: Any?): Boolean |
getValue | [jvm] Content operator fun getValue(thisRef: Any?, property: KProperty<*>): T |
hashCode | [jvm] Content open override fun hashCode(): Int |
reload | [jvm] Brief description Loads the current state of the config on disk to the config object. Content fun reload() |
save | [jvm] Brief description Saves the config object in its current state to disk. Content fun save() |
setValue | [jvm] Content operator fun setValue(thisRef: Any?, property: KProperty<*>, config: T): Boolean |
toString | [jvm] Content open override fun toString(): String |
Properties
Name | Summary |
---|---|
data | [jvm] var data: T |