commonMain.com.squareup.sqldelight.internal.Atomics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime-jvm Show documentation
Show all versions of runtime-jvm Show documentation
Multiplatform runtime library to support generated code
package com.squareup.sqldelight.internal
import kotlin.reflect.KProperty
expect class AtomicBoolean(value: Boolean) {
fun get(): Boolean
fun set(value: Boolean)
}
internal operator fun AtomicBoolean.getValue(thisRef: Any?, prop: KProperty<*>): Boolean {
return get()
}
internal operator fun AtomicBoolean.setValue(thisRef: Any?, prop: KProperty<*>, value: Boolean) {
set(value)
}
expect class Atomic(value: V) {
fun get(): V
fun set(value: V)
}
operator fun Atomic.getValue(thisRef: Any?, prop: KProperty<*>): T {
return get()
}
operator fun Atomic.setValue(thisRef: Any?, prop: KProperty<*>, value: T) {
set(value)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy