e6f4d6e6fa
^KT-65406
37 lines
967 B
Kotlin
Vendored
37 lines
967 B
Kotlin
Vendored
class Wrapper {
|
|
var baseUrl: String
|
|
field = baseUrl
|
|
get
|
|
set
|
|
|
|
constructor(baseUrl: String) /* primary */ {
|
|
super/*Any*/()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
}
|
|
|
|
enum class ConfigurationParameter : Enum<ConfigurationParameter> {
|
|
BASE_URL = ConfigurationParameter(apply = local fun <anonymous>(value: String, nc: Wrapper) {
|
|
println(message = "Base url updated from config parameters ".plus(other = nc.<get-baseUrl>()).plus(other = " -> ").plus(other = value))
|
|
nc.<set-baseUrl>(<set-?> = value)
|
|
}
|
|
)
|
|
|
|
private constructor(apply: Function2<String, Wrapper, Unit>) {
|
|
super/*Enum*/<ConfigurationParameter>()
|
|
/* <init>() */
|
|
|
|
}
|
|
|
|
fun valueOf(value: String): ConfigurationParameter /* Synthetic body for ENUM_VALUEOF */
|
|
|
|
fun values(): Array<ConfigurationParameter> /* Synthetic body for ENUM_VALUES */
|
|
|
|
val entries: EnumEntries<ConfigurationParameter>
|
|
get(): EnumEntries<ConfigurationParameter> /* Synthetic body for ENUM_ENTRIES */
|
|
|
|
}
|
|
|