utils-internal
Toggle table of contents
2.4.0
common
jsCommon
jvmCommon
nativeCommon
Platform filter
common
jsCommon
jvmCommon
nativeCommon
Switch theme
Search in API
utils-internal
utils-internal
/
com.badoo.reaktive.utils.atomic
/
AtomicReference
Atomic
Reference
common
jsCommon
jvmCommon
nativeCommon
expect
class
AtomicReference
<
T
>
(
initialValue
:
T
)
actual
class
AtomicReference
<
T
>
(
initialValue
:
T
)
actual
class
AtomicReference
<
T
>
(
initialValue
:
T
)
actual
class
AtomicReference
<
T
>
(
initialValue
:
T
)
Members
Members & Extensions
Constructors
Atomic
Reference
Link copied to clipboard
common
jsCommon
jvmCommon
nativeCommon
expect
constructor
(
initialValue
:
T
)
actual
constructor
(
initialValue
:
T
)
actual
constructor
(
initialValue
:
T
)
actual
constructor
(
initialValue
:
T
)
Properties
value
Link copied to clipboard
common
jsCommon
jvmCommon
nativeCommon
expect
var
value
:
T
actual
var
value
:
T
actual
var
value
:
T
actual
var
value
:
T
Functions
change
Link copied to clipboard
inline
fun
<
T
>
AtomicReference
<
T
>
.
change
(
update
:
(
T
)
->
T
)
change
And
Get
Link copied to clipboard
inline
fun
<
T
,
R
:
T
>
AtomicReference
<
T
>
.
changeAndGet
(
update
:
(
T
)
->
R
)
:
R
compare
And
Set
Link copied to clipboard
common
jsCommon
nativeCommon
expect
fun
compareAndSet
(
expectedValue
:
T
,
newValue
:
T
)
:
Boolean
actual
fun
compareAndSet
(
expectedValue
:
T
,
newValue
:
T
)
:
Boolean
actual
fun
compareAndSet
(
expectedValue
:
T
,
newValue
:
T
)
:
Boolean
get
And
Change
Link copied to clipboard
inline
fun
<
T
>
AtomicReference
<
T
>
.
getAndChange
(
update
:
(
T
)
->
T
)
:
T
get
And
Set
Link copied to clipboard
common
jsCommon
nativeCommon
expect
fun
getAndSet
(
newValue
:
T
)
:
T
actual
fun
getAndSet
(
newValue
:
T
)
:
T
actual
fun
getAndSet
(
newValue
:
T
)
:
T