KtConfigString

open class KtConfigString<T : Any>(clazz: KClass<T>, type: KType) : KtConfig<T>

Handle config as String.

Since

1.0.0

Parameters

clazz
type
T

Config type

Inheritors

Constructors

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

Types

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

Handle config as String.

Functions

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

Load config from text.

Link copied to clipboard
fun save(content: T): String

Save config to String.