ConfigDelegate

abstract class ConfigDelegate<T : Any>(file: File, saveAfterLoad: Boolean, defaultCallback: () -> T?)

See also

Constructors

ConfigDelegate
Link copied to clipboard
fun <T : Any> ConfigDelegate(file: File, saveAfterLoad: Boolean, defaultCallback: () -> T?)

Functions

getValue
Link copied to clipboard
abstract operator fun getValue(thisRef: Any?, property: KProperty<*>): T
reload
Link copied to clipboard
abstract fun reload()
Loads the current state of the config on disk to the config object.
save
Link copied to clipboard
abstract fun save()
Saves the config object in its current state to disk.
saveIt
Link copied to clipboard
abstract fun saveIt(toSave: T)
setValue
Link copied to clipboard
abstract operator fun setValue(thisRef: Any?, property: KProperty<*>, config: T): Boolean