{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AtomicInt


Summary

Public constructors

AtomicInt(value_: Int)
Cmn

Public functions

Int
addAndGet(delta: Int)
Cmn
Boolean
compareAndSet(expected: Int, new: Int)
Cmn

Public constructors

AtomicInt

AtomicInt(value_: Int)

Public functions

addAndGet

fun addAndGet(delta: Int): Int

compareAndSet

fun compareAndSet(expected: Int, new: Int): Boolean