ConfigDelegate

class ConfigDelegate<T : Any>(configClass: KClass<T>, file: File, defaultCallback: () -> T?)

See also

kSpigotJsonConfig
Link copied to clipboard

Constructors

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

Functions

equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getValue
Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): T
hashCode
Link copied to clipboard
open override fun hashCode(): Int
reload
Link copied to clipboard

Loads the current state of the config on disk to the config object.

fun reload()
save
Link copied to clipboard

Saves the config object in its current state to disk.

fun save()
setValue
Link copied to clipboard
operator fun setValue(thisRef: Any?, property: KProperty<*>, config: T): Boolean
toString
Link copied to clipboard
open override fun toString(): String

Properties

data
Link copied to clipboard
var data: T