KtConfigFile

open class KtConfigFile<T : Any>(clazz: KClass<T>, type: KType, file: File) : KtConfig<T>

Handle config as File.

Since

1.0.0

Parameters

clazz
type
file

Yaml file

T

Config type

Inheritors

Constructors

Link copied to clipboard
constructor(clazz: KClass<T>, type: KType, file: File)

Types

Link copied to clipboard
class Default<T : Any>(clazz: KClass<T>, type: KType, file: File, default: () -> T) : KtConfigFile<T>

Handle config as File.

Functions

Link copied to clipboard
open fun load(): T?

Load config from file.

Link copied to clipboard
fun save(content: T)

Save config to file.