jvmCommonMain.com.badoo.reaktive.utils.atomic.AtomicLong.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-internal-jvm Show documentation
Show all versions of utils-internal-jvm Show documentation
Kotlin multi-platform implementation of Reactive Extensions
package com.badoo.reaktive.utils.atomic
import com.badoo.reaktive.utils.InternalReaktiveApi
@InternalReaktiveApi
actual class AtomicLong actual constructor(initialValue: Long) : java.util.concurrent.atomic.AtomicLong(initialValue) {
actual var value: Long
get() = super.get()
set(value) {
super.set(value)
}
// See KT-16087
override fun toByte(): Byte = value.toByte()
override fun toShort(): Short = value.toShort()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy