All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmCommonMain.com.badoo.reaktive.utils.atomic.AtomicInt.kt Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
package com.badoo.reaktive.utils.atomic

import com.badoo.reaktive.utils.InternalReaktiveApi

@InternalReaktiveApi
actual class AtomicInt actual constructor(initialValue: Int) : java.util.concurrent.atomic.AtomicInteger(initialValue) {

    actual var value: Int
        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